joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40be20
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57e818
push 0x50d500
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x10], 2
jae 0x40be86
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x28], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x40beec
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x40beec
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x40beec
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bfaa
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40bfa8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, eax
test edx, edx
je 0x40bfa8
mov dword [ebp - 4], esi
movzx esi, word [edx]
mov dword [ebp - 0x28], esi
lea eax, [esi*2 + 4]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jbe 0x40bf52
mov esi, ecx
shr esi, 1
sub esi, 4
mov dword [ebp - 0x28], esi
mov dword [ebp + 0x10], 1
jmp 0x40bf59
mov dword [ebp + 0x10], 0
push esi
push edx
push dword [ebp + 0x14]
call fcn.0050c8e0
add esp, 0xc
mov eax, dword [str.FE2X]
mov ecx, dword [ebp + 0x14]
mov dword [esi + ecx], eax
cmp dword [ebp + 0x10], 0
je 0x40bf7a
mov word [ecx], si
mov esi, 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x40bfaa
xor esi, esi
test edi, edi
je 0x40bfb5
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40bfc2
push ebx
call edi
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x40bfcd
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c0c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5398f6
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x58d984]
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 esi, ecx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40c250
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push 0
push eax
call fcn.0050ce60
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40c249
mov eax, dword fs:[0x2c]
mov ecx, dword [0x59ab48]
mov ebx, dword [eax + ecx*4]
lea eax, [ebp - 0x218]
shr eax, 0x10
mov dword [ebp - 0x244], eax
jmp 0x40c160
mov eax, dword [0x597190]
cmp eax, dword [ebx + 0x3c]
jg 0x40c26c
mov eax, dword [0x5971b0]
cmp eax, dword [ebx + 0x3c]
jg 0x40c2be
mov eax, dword [0x597194]
mov ecx, 0x597194
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x244], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
jne 0x40c1bf
movzx eax, ax
lea ecx, [ebp - 0x240]
push eax
call fcn.0040c7e0
jmp 0x40c1e4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c1c2
sub eax, edx
lea ecx, [ebp - 0x240]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00408420
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 1
push ecx
cmp dword [esi + 8], eax
je 0x40c207
mov ecx, eax
call fcn.00403640
add dword [esi + 4], 4
jmp 0x40c20f
push eax
mov ecx, esi
call fcn.004032e0
mov edx, dword [ebp - 0x240]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c234
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c160
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.004eda39
mov esp, ebp
pop ebp
ret
push 0x597190
call fcn.004ed945
add esp, 4
cmp dword [0x597190], 0xffffffff
jne 0x40c171
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x5420e0
mov dword [0x597184], 0x5456ec
mov dword [0x597188], eax
mov byte [0x59718c], 0
call fcn.004ed6f7
push 0x597190
call fcn.004ed8fb
add esp, 8
jmp 0x40c171
push 0x5971b0
call fcn.004ed945
add esp, 4
cmp dword [0x5971b0], 0xffffffff
jne 0x40c182
xor eax, eax
mov dword [0x597194], 0x545704
push 0x542110
mov dword [0x597198], 0x597184
mov dword [0x5971a8], 2
mov dword [0x5971a0], 0
mov dword [0x5971a4], 0
mov dword [0x5971ac], eax
mov dword [0x59719c], 0x597194
call fcn.004ed6f7
push 0x5971b0
call fcn.004ed8fb
add esp, 8
jmp 0x40c182
Function at 0x410c10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539d08
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x58d984]
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 0x410c52
xor al, al
jmp 0x410dd5
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 0x410c4b
call fcn.0040d650
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push esi
push 0x544c1c
push dword [ebp - 0x38]
push dword [ebp - 0x34]
call fcn.0040d5f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x410dca
test eax, eax
jne 0x410da9
mov edi, dword [0x59e6e0]
test edi, edi
jne 0x410caf
mov edi, 0x544c1c
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 0x410cd0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403190
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00410bd0
mov esi, dword [ebp - 0x40]
cmp esi, dword [ebx]
je 0x410d19
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00410360
test al, al
je 0x410d47
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 0x545b16
call fcn.0040fad0
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x48]
push eax
call fcn.0040fca0
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 0x410d50
sub eax, edx
lea ecx, [esi + 0x28]
sar eax, 1
push eax
push edi
call fcn.00403190
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x410da6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410d9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410df1
push edx
push ecx
call fcn.004ed797
add esp, 8
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
push eax
push esi
push 0x544c1c
push dword [ebp - 0x38]
push dword [ebp - 0x34]
call fcn.0040d5f0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x410c98
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.004eda39
mov esp, ebp
pop ebp
ret
call fcn.0051042e
int3
Function at 0x4119d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539e18
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x411aef
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 0x411ab2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411ab2
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.00411b00
add esp, 8
test eax, eax
je 0x411a71
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 0x546a88
push eax
call fcn.004047e0
mov eax, dword [ebp + 0x10]
add esp, 0x18
test eax, eax
je 0x411a91
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x411a9d
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x411aa6
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x411aaf
mov dword [eax], ebx
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.00408090
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 0x411adb
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.00404520
int3
Function at 0x411b90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539e6d
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1a0]
mov esi, dword [ebp + 0xc]
push 0xc8
push 0
mov dword [ebp - 0x1ac], edi
push eax
mov dword [ebp - 0x1a4], 0
call fcn.0050ce60
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.0050ce60
add esp, 0x18
mov dword [ebp - 4], 1
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x411d13
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi]
add ecx, 0xfffffff0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1a4], 1
cmp dword [ecx + 4], 3
jg 0x411c4c
push ecx
call fcn.00408090
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x1a8], esi
jmp 0x411c7d
mov ecx, dword [ecx]
test ecx, ecx
je 0x411c5b
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x411c67
call fcn.004048c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push 3
push dword [esi]
lea ecx, [ebp - 0x1a8]
call fcn.0040a6f0
mov esi, dword [ebp - 0x1a8]
mov dword [ebp - 0x1a4], 3
push 0xc8
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 2
push eax
push 0
push 0
push 0
push 0xc8
lea eax, [ebp - 0x1a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x411cde
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411cc0
sub ecx, edx
lea eax, [ebp - 0xd8]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00408420
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411cf6
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404520
int3
Function at 0x417750
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x417781
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x417770
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x418540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x58d984]
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 0x4186cc
mov esi, dword [esi]
cmp dword [esi - 0xc], 0
je 0x4186cc
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0050ce60
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 0x4186cc
lea esi, [ebp - 0x804]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4185e0
sub esi, ecx
sar esi, 1
jne 0x41860b
mov ecx, edi
call fcn.00404620
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
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 0x4186df
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x418643
push esi
mov ecx, edi
call fcn.00404ae0
mov edx, dword [edi]
cmp ebx, dword [ebp - 0x808]
ja 0x418693
mov eax, dword [edx - 8]
lea ecx, [esi + esi]
lea ebx, [edx + ebx*2]
test ecx, ecx
je 0x4186a7
test ebx, ebx
jne 0x41866e
call fcn.00513a32
mov dword [eax], 0x16
call fcn.0051041e
jmp 0x4186a7
add eax, eax
cmp eax, ecx
jae 0x418686
call fcn.00513a32
mov dword [eax], 0x22
call fcn.0051041e
jmp 0x4186a7
push ecx
push ebx
push edx
call fcn.0050d660
add esp, 0xc
jmp 0x4186a7
push esi
lea eax, [ebp - 0x804]
push eax
push dword [edx - 8]
push edx
call fcn.0040c030
add esp, 0x10
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x4186df
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.004eda39
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.004eda39
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404520
int3
Function at 0x418730
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a328
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x418849
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x418849
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 0x41879a
cmp edx, dword [esi]
jne 0x41879a
lock inc dword [eax]
jmp 0x4187ca
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 0x41885d
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.0040c030
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 0x418862
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x4187ff
push edi
lea ecx, [ebp + 0x14]
call fcn.00404ae0
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 0x418835
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.00404ec0
push 0x80070057
call fcn.00404520
int3
Function at 0x419e20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a510
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x58d984]
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 0x597b00
call fcn.0050ce60
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x419fe6
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.004047e0
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x419ff0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
push 0x545fd0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004036d0
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.00418540
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 0x419f08
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 0x419f2c
push dword [ebp - 0x30]
push 0x104
push 0x597b00
call fcn.00513a45
add esp, 0xc
jmp 0x419f98
push 0
lea eax, [ebp - 0x28]
push 0x1a
push eax
call fcn.00405880
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 5
jb 0x419f48
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004036d0
lea ecx, [ebp - 0x28]
call fcn.00403110
push dword [ebp - 0x2c]
push 0x104
push 0x597b00
call fcn.00513a45
add esp, 0xc
push str.SodaMSOAddin
push 0x597b00
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 0x419f98
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 0x419fb2
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 0x419fca
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.004eda39
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404520
push 0x80004005
call fcn.00404520
int3
Function at 0x41a750
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x597d74
mov dword [0x597aec], 0
call fcn.0041eeb0
test al, al
je 0x41a770
xor edx, edx
jmp 0x41a77f
push 0
push str.SodaMSOAddinSetupWnd_Class
call dword [sym.imp.USER32.dll_FindWindowW]
mov edx, eax
mov ecx, 0x597b00
mov dword [0x597af0], edx
push esi
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a790
sub ecx, esi
sar ecx, 1
jne 0x41a7ac
call fcn.00419e20
mov edx, dword [0x597af0]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
test edx, edx
je 0x41a7f9
push 0
push 0
push 0x7e9
push edx
call esi
mov eax, dword [0x597aec]
add eax, 1
mov dword [0x597aec], eax
jns 0x41a7d5
xor eax, eax
jmp 0x41a7df
cmp eax, 0x64
jle 0x41a7e4
mov eax, 0x64
mov dword [0x597aec], eax
mov ecx, dword [0x597af0]
test ecx, ecx
je 0x41a7f9
push eax
push 0
push 0x7e8
push ecx
call esi
push edi
push 0
mov dword [0x597af8], 0
mov dword [0x597af4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
push 0xcd
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41a853
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a853
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov dword [0x597af8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x597af4], eax
jmp 0x41a858
mov eax, dword [0x597af4]
cmp dword [0x597af8], 0
pop edi
jne 0x41a86f
mov eax, dword [0x597af0]
test eax, eax
je 0x41a888
push 8
jmp 0x41a87e
test eax, eax
jne 0x41a8a7
mov eax, dword [0x597af0]
test eax, eax
je 0x41a888
push 9
push 0
push 0x7e9
push eax
call esi
call fcn.004049c0
push str.runInstaller_openEmbeddedFilesArchive_false
push str.Reader___SetupHelper
push eax
call fcn.00404b40
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x597d74
call fcn.0041eeb0
push 0
test al, al
je 0x41a8c3
call fcn.00419200
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push fcn.00419200
push 0
push 0
call fcn.00515649
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret