joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fa60
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x1c]
push 0
push 0x476
push eax
call ebx
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43fad8
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x43fad8
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], 0xffffff37
mov dword [esp + 0xc], ecx
mov ecx, esi
call fcn.0047019f
lea edx, [esp + 0xc]
mov dword [esp + 0x10], eax
push edx
push eax
push 0x4e
push edi
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x43facf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x4533c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4aa4b8
cmp edx, dword [eax]
je 0x4533e3
add eax, 8
inc ecx
cmp eax, 0x4aa548
jl 0x4533d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4aa4b8]
jne 0x453511
mov eax, dword [0x4ad748]
cmp eax, 1
je 0x4534eb
test eax, eax
jne 0x453414
cmp dword [0x4a9c04], 1
je 0x4534eb
cmp edx, 0xfc
je 0x453511
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45344b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00453e40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00452530
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x45348e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00452530
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x495224
push edi
call fcn.0044adf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00453e40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00453e50
lea eax, [ebp - 0xa0]
push 0x4a62d8
push eax
call fcn.00453e50
push dword [esi + 0x4aa4bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00453e50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00456ac3
add esp, 0x2c
pop edi
jmp 0x453511
lea eax, [ebp + 8]
lea esi, [esi + 0x4aa4bc]
push 0
push eax
push dword [esi]
call fcn.00452530
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x45423e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov bl, 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00453fba
rcr dl, cl
aad 0xe2
lea eax, [ebp - 0x58]
push eax
call fcn.00453fca
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00453f7f
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4542a8
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00453fba
pop edx
adc ebx, ebp
insd dword es:[edi], dx
lea eax, [ebp - 0x40]
push eax
call fcn.00453fca
push eax
push esi
push dword [ebp + 8]
call fcn.00453f7f
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00453fba
salc
dec esi
mov bh, byte [edx - 0x73]
inc ebp
call 0x512da0b0
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00453fca
push eax
push esi
push dword [ebp + 8]
call fcn.00453f7f
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00453fca
push eax
push esi
push dword [ebp + 8]
call fcn.00453f7f
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
Function at 0x4546a0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x454691
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4546af
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
or byte [ecx], al
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x45470d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4546f4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4546fd
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x454707
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4546e9
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x454673
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x45475a
dec eax
je 0x454751
sub eax, 3
je 0x454748
mov dword [ebp - 4], 0x40
jmp 0x454777
mov dword [ebp - 4], 4
jmp 0x45475d
mov dword [ebp - 4], 0x20
jmp 0x45475d
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4547a9
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
invalid
push dword [esi - 0x60]
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
Function at 0x454710
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x454691
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4546af
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
or byte [ecx], al
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x45470d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4546f4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4546fd
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x454707
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4546e9
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x454673
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x45475a
dec eax
je 0x454751
sub eax, 3
je 0x454748
mov dword [ebp - 4], 0x40
jmp 0x454777
mov dword [ebp - 4], 4
jmp 0x45475d
mov dword [ebp - 4], 0x20
jmp 0x45475d
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4547a9
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
invalid
push dword [esi - 0x60]
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
Function at 0x454e78
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00453f98
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00453fca
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00453f7f
add esp, 0xc
mov dword [ebp - 0x3d4], eax
invalid
or al, dh
Function at 0x40ab93
Capabilities:
Query environment variable

Disassembly:
push 0x408
mov eax, 0x60dd7b
call fcn.00429868
push 0x208
xor esi, esi
lea eax, [ebp - 0x3e4]
push esi
push eax
call fcn.0042a970
add esp, 0xc
lea eax, [ebp - 0x3e4]
push 0x104
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40ac17
lea eax, [ebp - 0x3e4]
push eax
lea ecx, [ebp - 0x3fc]
call fcn.0040ad69
mov dword [ebp - 4], esi
lea eax, [ebp - 0x3fc]
cmp dword [ebp - 0x3e8], 8
push str._UserProfile_
cmovae eax, dword [ebp - 0x3fc]
push eax
call fcn.0045ac31
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3fc]
call fcn.00413b5a
mov ebx, 0xc8
lea eax, [ebp - 0x114]
push ebx
push esi
push eax
call fcn.0042a970
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x64
push eax
push str.USERDNSDOMAIN
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40ac8c
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x3fc]
call fcn.0040ad69
mov dword [ebp - 4], 1
lea eax, [ebp - 0x3fc]
cmp dword [ebp - 0x3e8], 8
push str._UserDnsDomain_
cmovae eax, dword [ebp - 0x3fc]
push eax
call fcn.0045ac31
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3fc]
call fcn.00413b5a
push ebx
lea eax, [ebp - 0x1dc]
push esi
push eax
call fcn.0042a970
add esp, 0xc
lea eax, [ebp - 0x1dc]
push 0x64
push eax
push str.USERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40acfc
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x3fc]
call fcn.0040ad69
mov dword [ebp - 4], 2
lea eax, [ebp - 0x3fc]
cmp dword [ebp - 0x3e8], 8
push str._UserName_
cmovae eax, dword [ebp - 0x3fc]
push eax
call fcn.0045ac31
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3fc]
call fcn.00413b5a
push 0x3c
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.0042a970
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x1e
push eax
push str.COMPUTERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40ad60
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x414]
call fcn.0040ad69
mov dword [ebp - 4], 3
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x400], 8
push str._ComputerName_
cmovae eax, dword [ebp - 0x414]
push eax
call fcn.0045ac31
lea ecx, [ebp - 0x414]
call fcn.00413b5a
call fcn.00429817
ret
Function at 0x40b250
Capabilities:
Accept command line arguments

Disassembly:
push 0x80
mov eax, 0x60df7a
call fcn.00429868
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
mov edi, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40b271
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov ecx, edi
mov dword [ebp - 0x54], ebx
call fcn.00411946
xor esi, esi
cmp dword [ebp - 0x14], esi
jle 0x40b3c8
push dword [ebx + esi*4]
lea ecx, [ebp - 0x30]
call fcn.0040ad69
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x48], ecx
xor eax, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
push 0x3a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push ecx
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.00411e2e
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b329
lea eax, [ebp - 0x4d]
push eax
push 0xffffffffffffffff
lea ecx, [ebx + 1]
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00411c54
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x48]
call fcn.004119c0
lea ecx, [ebp - 0x6c]
call fcn.00413b5a
lea eax, [ebp - 0x4d]
push eax
push ebx
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00411c54
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x30]
call fcn.004119c0
lea ecx, [ebp - 0x6c]
call fcn.00413b5a
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x84]
call fcn.00411a2e
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x6c]
call fcn.00411a2e
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x8c]
mov ecx, edi
push eax
call fcn.004128b3
lea ecx, [ebp - 0x6c]
call fcn.00413b5a
lea ecx, [ebp - 0x84]
call fcn.00413b5a
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x40b3af
mov ecx, dword [ebp - 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x4c], ecx
cmp eax, 0x1000
jb 0x40b3a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00413cba
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
push eax
push ecx
call fcn.00429588
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00413b5a
mov ebx, dword [ebp - 0x54]
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x40b293
call fcn.00429817
ret 8
Function at 0x40eb85
Capabilities:
Accept command line arguments

Disassembly:
push 0x48
mov eax, 0x60e4e1
call fcn.00429868
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x40ebf1
mov eax, dword [0x6c2c20]
lea ecx, [ebp - 0x54]
push str._firstsetup
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
call fcn.0040ad69
lea eax, [ebp - 0x54]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x3c], 1
mov ecx, esi
push dword [ebp - 0x14]
push edi
call dword [0x6317ac]
mov ecx, dword [0x6c2c20]
call esi
mov byte [ebp - 0x35], 1
test al, al
jne 0x40ebf4
mov byte [ebp - 0x35], bl
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x3c], 1
je 0x40ec06
lea ecx, [ebp - 0x54]
call fcn.00413b5a
call fcn.004bdebb
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x1a8]
mov ecx, esi
call dword [0x6317ac]
mov ecx, edi
call esi
test al, al
je 0x40ec32
mov edi, dword [0x6c2ad4]
mov eax, dword [edi]
mov esi, dword [eax + 0x3c]
jmp 0x40ec3e
call fcn.004bdebb
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x6317ac]
mov ecx, edi
call esi
cmp byte [ebp - 0x35], 0
mov byte [ebp - 0x36], al
jne 0x40eccb
call fcn.004bdebb
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x1c0]
mov ecx, esi
call dword [0x6317ac]
mov ecx, edi
call esi
test al, al
je 0x40eccb
cmp byte [ebp - 0x36], 0
jne 0x40eccb
push ebx
push 3
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov eax, 0x67feb4
push eax
push eax
call fcn.0045a3d6
test eax, eax
js 0x40ecc6
push ebx
push 2
push 1
push 0xa4c4e40a
push 0x6825bc
push str.StandaloneUpdater::HandleZeroExhaustPolicy
push 0x615
push str.D:dbs_shodct0202_162706cmdcclientonedriveProductStandaloneUpdaterStandaloneUpdaterLibStandaloneUpdater.cpp
lea ecx, [ebp - 0x34]
call fcn.004591ec
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.0045a999
call fcn.0045a6b3
mov ebx, 0x8004ee06
mov eax, ebx
call fcn.00429817
ret
Function at 0x40ef26
Capabilities:
Accept command line arguments

Disassembly:
push 0x48
mov eax, 0x60e569
call fcn.00429868
mov edi, ecx
xor ebx, ebx
and dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40ef97
mov eax, dword [0x6c2c20]
lea ecx, [ebp - 0x3c]
push str._firstsetup
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
call fcn.0040ad69
and dword [ebp - 4], ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
inc ebx
mov ecx, esi
push dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
call dword [0x6317ac]
mov ecx, dword [0x6c2c20]
call esi
mov byte [ebp - 0x15], 1
test al, al
jne 0x40ef9b
mov byte [ebp - 0x15], 0
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40efaf
lea ecx, [ebp - 0x3c]
and ebx, 0xfffffffe
call fcn.00413b5a
cmp dword [ebp - 0x20], 0
je 0x40effb
mov eax, dword [0x6c2c20]
lea ecx, [ebp - 0x54]
push str._allusers
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
call fcn.0040ad69
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
push eax
push dword [ebp - 0x14]
or ebx, 2
mov ecx, esi
push dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
call dword [0x6317ac]
mov ecx, dword [0x6c2c20]
call esi
mov byte [ebp - 0x16], 1
test al, al
jne 0x40efff
mov byte [ebp - 0x16], 0
or dword [ebp - 4], 0xffffffff
test bl, 2
je 0x40f010
lea ecx, [ebp - 0x54]
call fcn.00413b5a
cmp byte [ebp - 0x15], 0
je 0x40f0c8
mov eax, dword [edi]
push 1
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6317ac]
mov ecx, edi
call esi
cmp byte [ebp - 0x16], 0
jne 0x40f04a
test al, al
jne 0x40f04e
mov eax, dword [edi]
push 0
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6317ac]
mov ecx, edi
call esi
test al, al
je 0x40f0c8
mov ecx, edi
mov dword [ebp - 0x1c], 0x8004ee4c
call fcn.0040ecd3
test eax, eax
js 0x40f0cd
xor ecx, ecx
mov esi, dword [ebp - 0x1c]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov eax, 0x681358
mov edx, 0x6ac
push eax
push eax
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push 0x68135c
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov eax, 0x682614
push eax
push eax
push eax
push ecx
push ecx
push str.Failure
push esi
push str.VersionIsSetBailoutFirstSetup
push 0x67feb4
push str.StandaloneUpdater::HandleOneDriveAlreadyInstalled
mov ecx, str.D:dbs_shodct0202_162706cmdcclientonedriveProductStandaloneUpdaterStandaloneUpdaterLibStandaloneUpdater.cpp
call fcn.00408090
jmp 0x40f0d2
mov esi, dword [ebp - 0x1c]
jmp 0x40f0d2
mov esi, 0x8004ee4c
mov eax, esi
call fcn.00429817
ret
Function at 0x4195b5
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x244
mov eax, 0x60f437
call fcn.00429868
mov ebx, ecx
mov dword [ebp - 0x238], ebx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x21c], ebx
and dword [ebp - 4], 0
lea eax, [ebp + 0x18]
mov dword [ebx], vtable.StandaloneUpdaterController.0
lea ecx, [ebx + 4]
push eax
call fcn.004118d4
lea eax, [ebp + 8]
lea ecx, [ebx + 0xc]
push eax
call fcn.004134f0
lea ecx, [ebx + 0x10]
and dword [ecx], 0
lea eax, [ebp + 0x20]
and dword [ecx + 4], 0
push eax
call fcn.004135d4
lea eax, [ebp + 0x28]
lea ecx, [ebx + 0x18]
push eax
call fcn.004118d4
lea eax, [ebp + 0x30]
lea ecx, [ebx + 0x20]
push eax
call fcn.004118d4
lea eax, [ebp + 0x38]
lea ecx, [ebx + 0x28]
push eax
call fcn.004118d4
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0x34]
mov byte [ebp - 4], 0xc
push esi
mov dword [ebx + 0x30], eax
call fcn.00411a2e
lea esi, [ebx + 0x4c]
and dword [esi], 0
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebx + 0x64]
mov byte [ebp - 4], 0xf
push edi
call fcn.00411a2e
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x10
push 0
push eax
mov byte [ebx + 0x7c], 0
call fcn.0042a970
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x29
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x419760
and dword [ebp - 0x234], 0
and dword [ebp - 0x224], 0
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x234]
call fcn.00411bb5
push str.OneDriveSetup.exe
lea ecx, [ebp - 0x234]
call fcn.00411c2b
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.004c3118
push eax
mov ecx, esi
call fcn.004119c0
lea ecx, [ebp - 0x250]
call fcn.00413b5a
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x419760
mov ecx, dword [ebp - 0x234]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x238], ecx
cmp eax, 0x1000
jb 0x419757
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00413cba
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x238]
push eax
push ecx
call fcn.00429588
pop ecx
pop ecx
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x41976c
call fcn.00413806
lea ecx, [ebp + 8]
call fcn.00411886
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x419780
call fcn.00413806
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x41978c
call fcn.00413806
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x419798
call fcn.00413806
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x4197a4
call fcn.00413806
mov eax, ebx
call fcn.00429817
ret 0x38