joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000128f
Capabilities:
Query environment variable

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 8], ebx
je 0x100012b2
push 0x104
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x100012b2
mov bl, 1
mov al, bl
pop ebx
ret

Function at 0x100017d8
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x10011265
call fcn.10002bb0
mov eax, dword [ebp + 8]
push 0x104
push eax
xor edi, edi
push edi
push edi
xor ecx, ecx
push 0x10012858
mov word [eax], cx
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x1000184c
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.1000230d
pop ecx
pop ecx
push edi
push esi
call fcn.10009008
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.10002085
push eax
push esi
push 0x100124f4
call fcn.1000230d
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x10001845
ret
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x100018fd
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x100018a9
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10001810
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x100018fd
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x100018fd
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10001810
mov eax, esi
call fcn.10002be6
ret

Function at 0x10002390
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10016040]
jne 0x1000239a
repz ret
jmp fcn.100046fe
Function at 0x10001414
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x10040008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.libeay32
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov dword [0x100406a0], eax
test eax, eax
jne 0x10001485
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push 0x1001229c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x310]
push 0x10
push str.AheadLib
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x320
call edi
lea eax, [ebp - 0x314]
push eax
push esi
push esi
push 0x10001235
push esi
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ebx, 0x44c
mov esi, eax
push ebx
call edi
test esi, esi
je 0x100014c6
push ebx
call edi
push ebx
call edi
push 0x3e8
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1001068c
leave
ret

Function at 0x100014d8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10040008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
push dword [0x100406a0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10001553
mov eax, esi
shr eax, 0x10
test ax, ax
jne 0x1000151f
push esi
lea eax, [ebp - 0x14]
push 0x100122c8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea esi, [ebp - 0x14]
push esi
lea eax, [ebp - 0x118]
push 0x100122cc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x10
push str.AheadLib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001068c
leave
ret
Function at 0x1000fc82
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000fca5
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x1000fd78
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x1000fcd2
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000fcd8
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, ecx
cdq
mov dword [esp + 0x2c], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1000fd40
jg 0x1000fcef
test esi, esi
je 0x1000fd40
test ecx, ecx
jl 0x1000fd3a
jg 0x1000fcf9
test eax, eax
je 0x1000fd3a
cmp edi, ecx
jg 0x1000fd0d
jl 0x1000fd03
cmp esi, eax
jae 0x1000fd0d
mov eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x28]
push eax
push ebp
push dword [esp + 0x20]
call fcn.1000f2ed
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
add ebp, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1000fd44
mov ebp, dword [esp + 0x28]
jmp 0x1000fd4e
mov ebp, dword [esp + 0x28]
test edi, edi
jl 0x1000fd69
jg 0x1000fd4e
test esi, esi
je 0x1000fd69
cmp dword [ebx + 0x4c], 0
je 0x1000fd69
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x1000fd7f
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], esi
test ebp, ebp
jg 0x1000fdab
jl 0x1000fda2
test ebx, ebx
jne 0x1000fdab
xor eax, eax
xor edx, edx
jmp 0x1000fe5e
cmp dword [ecx + 0x38], 0
je 0x1000fdbf
push ebp
push ebx
push esi
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x1000fe5e
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x1000fe05
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x1000fe05
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x10]
cmovb esi, dword [eax]
push esi
push edx
push edi
call fcn.1000f2ed
mov ecx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x1c], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x1000fe54
call fcn.100102d5
mov edx, edi
jmp 0x1000fe35
push dword [ecx + 0x4c]
push eax
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub edi, eax
add esp, 0x10
add esi, eax
mov edx, edi
cmp eax, 0xfff
jne 0x1000fe54
mov ecx, dword [esp + 0x14]
mov eax, 0xfff
cmp edi, eax
ja 0x1000fe14
test edx, edx
je 0x1000fe54
push dword [ecx + 0x4c]
push edi
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb ebp, 0
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x100100d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x10040008]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x100100f5
xor eax, eax
jmp 0x100101c3
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x1001011e
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x1001011e
lea ecx, [ebp - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x1001018d
cmp dword [esi + 0x4c], 0
je 0x100101c0
mov ecx, esi
call fcn.100102d5
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001013b
movsx eax, bl
jmp 0x1001017c
lea eax, [esp + 0x10]
mov byte [esp + 0x1b], bl
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2f]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10010191
sub eax, 1
je 0x10010191
dec eax
sub eax, 1
jne 0x100101c0
movsx eax, byte [esp + 0x1b]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmove ebx, edi
mov eax, ebx
jmp 0x100101c2
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x100101b1
push dword [esi + 0x4c]
push ebp
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebp, eax
jne 0x100101c0
lea eax, [esp + 0x1b]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
cmovne edi, ebx
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001068c
add esp, 0x30
ret 4
Function at 0x100102f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10040008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x10010350
cmp byte [esi + 0x3d], bl
je 0x10010350
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1001038a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x10010361
sub eax, 1
je 0x10010364
dec eax
sub eax, 1
jne 0x1001038a
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001068c
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10010382
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001038a
cmp byte [esi + 0x3d], bl
sete al
jmp 0x10010352
xor al, al
jmp 0x10010352
Function at 0x40248f
Capabilities:
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43452b
mov eax, dword fs:[0]
push eax
mov eax, 0x180c
call fcn.00414cb0
mov eax, dword [0x44c06c]
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
xor ebx, ebx
push ebx
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, 0x400
lea ecx, [ebp - 0x1010]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1814], ebx
push eax
lea ecx, [ebp - 0x1814]
call fcn.004025fe
lea eax, [ebp - 0x810]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x445e9c
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.00418d79
add esp, 0xc
lea ecx, [ebp - 0x810]
call fcn.0040246d
test al, al
lea eax, [ebp - 0x810]
jne 0x4025b5
push eax
push ebx
push ebx
push 0x23
push ebx
mov dword [ebp - 0x1818], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x1818]
push eax
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str.MicrosoftTeams_
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.00418d79
add esp, 0xc
lea eax, [ebp - 0x1810]
push eax
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.00418d79
add esp, 0xc
lea eax, [ebp - 0x810]
push str.current
push edi
push eax
call fcn.00418d79
add esp, 0xc
lea ecx, [ebp - 0x810]
call fcn.0040246d
test al, al
je 0x4025d5
lea eax, [ebp - 0x810]
push str._teams.exe
push edi
push eax
call fcn.00418d79
add esp, 0xc
lea ecx, [ebp - 0x810]
mov edx, esi
call fcn.0040c783
mov bl, al
jmp 0x4025d7
mov bl, 1
lea ecx, [ebp - 0x1814]
call fcn.0040215d
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 - 0x10]
xor ecx, ebp
call fcn.00413a95
leave
ret
Function at 0x4055ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x405690
cmp dword [esi + 4], 0xffffffff
jne 0x405690
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x405621
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x405655
cmp eax, 0x2f
je 0x405655
push 0x446178
push 0x104
push edi
call fcn.00418d79
add esp, 0xc
push 0x20
call fcn.00413d40
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], bl
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.00404c96
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x405695
mov eax, 0x1000000
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x405cbe
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x405cf0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405cf0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x405dad
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x405d0f
cmp dx, 0x5c
jne 0x405d11
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x405d03
cmp esi, ebx
je 0x405d57
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.00415620
add esp, 0xc
cmp esi, 0x208
jae 0x405dbb
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.00405cbe
xor eax, eax
mov esi, 0x104
mov word [ebp - 0x20c], ax
test edi, edi
je 0x405d7a
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00418d15
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00418d79
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x405dad
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret
call fcn.00413bfd
int3
Function at 0x40c498
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 8], ecx
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x40c561
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push ecx
push ecx
lea ecx, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040c8d5
mov esi, dword [ebp - 0x14]
xor edi, edi
push esi
push dword [ebp - 0x1c]
push edi
push dword [ebp - 8]
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x40c54f
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], edi
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], edi
push eax
push 0x446178
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c54f
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xa]
mov dword [ebx], eax
movzx eax, word [ecx + 8]
mov dword [ebx + 4], eax
movzx eax, word [ecx + 0xe]
mov dword [ebx + 8], eax
movzx eax, word [ecx + 0xc]
mov dword [ebx + 0xc], eax
test esi, esi
je 0x40c54b
mov eax, dword [ebp - 0xc]
sub eax, esi
push eax
push esi
call fcn.00409a1b
pop ecx
pop ecx
mov al, 1
jmp 0x40c563
test esi, esi
je 0x40c561
mov eax, dword [ebp - 0xc]
sub eax, esi
push eax
push esi
call fcn.00409a1b
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret
Function at 0x40c783
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x80c], 0
lea eax, [ebp - 0x810]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x810], 4
push eax
lea eax, [ebp - 0x814]
mov esi, edx
push eax
push 0x10
push str.AllowMsiOverride
push 0x446910
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [ebp - 0x80c], 0
jne 0x40c7ed
mov byte [esi], 0
xor al, al
jmp 0x40c8c6
mov ecx, str.entered_MsiOverride_mode
mov byte [esi], 1
call fcn.00409d9d
push 0x400
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40c81e
mov ecx, str.could_not_get_the_full_path_of_the_Setup_file___skipping_installation
call fcn.00409d9d
jmp 0x40c7e6
xor eax, eax
lea edi, [ebp - 0x824]
stosd dword es:[edi], eax
lea edx, [ebp - 0x824]
lea ecx, [ebp - 0x808]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040c498
test al, al
jne 0x40c846
mov ecx, str.could_not_get_the_Setup_version___skipping_installation
jmp 0x40c817
lea edx, [ebp - 0x824]
mov ecx, str.Setup_version_is
call fcn.0040c5db
push 0x445e84
lea ecx, [ebp - 0x824]
call fcn.0040c572
test al, al
je 0x40c871
mov ecx, str.the_version_of_the_Setup_file_is_invalid___skipping_installation
jmp 0x40c817
xor eax, eax
lea edi, [ebp - 0x834]
stosd dword es:[edi], eax
lea edx, [ebp - 0x834]
mov ecx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040c498
lea edx, [ebp - 0x834]
mov ecx, str.App_version_is
call fcn.0040c5db
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x834]
call fcn.0040c572
test al, al
jne 0x40c8ba
mov ecx, str.The_app_version_already_installed_is_not_older_than_the_setup_version__skipping_installation
jmp 0x40c817
mov ecx, str.Setup_version_is_newer__re_installing_Teams_from_the_machine_wide_installer...
call fcn.00409d9d
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret
Function at 0x412281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x412290
pop dword [ebp - 0x28]
mov eax, 0xa6c89d
sub eax, 0x65a60d
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3b5ce
push 0
mov eax, 0x114fa4c2
add eax, 0xeef2eb6a
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x2b4ff049
sub ecx, 0x2b4f9f05
xor edi, edi
add edi, eax
mov ebx, 0x93ba0798
add ebx, 0x6c896668
add ebx, dword [ebp - 0x28]
mov esi, 0xfd1a5ba1
add dword [ebp - 0x1c], 0x4da2a937
mov edx, dword [ebx]
add dword [ebp - 0x14], 0x1a182081
xor edx, esi
add dword [ebp - 0x18], 0x7c37c6c8
mov dword [edi], edx
sub dword [ebp - 0xc], 0x75ed366e
add edi, 0xd9a7c34b
sub edi, 0xd9a7c347
add ebx, 0xb5ffe5b
add ebx, 0xf4a001a9
loop 0x4122eb
add eax, 0x137e3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x7002e77
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x701a85c]
jne 0x7002e81
repz ret
jmp fcn.0700f55f

Function at 0x70038fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x700390c
pop dword [ebp - 0x50]
mov eax, 0x7f9dca2
add eax, 0xff065c6a
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xefa7ad07
add dword [ebp - 0x60], 0x5eaa9844
mov dword [ebp - 0x5c], 0xa8f5b3ad
add dword [ebp - 0x5c], 0x893d9898
mov dword [ebp - 0x58], 0xb1bd310f
add dword [ebp - 0x58], 0x9a8f131f
mov dword [ebp - 0x54], 0x25abc55e
sub dword [ebp - 0x54], 0x25abc55e
lea eax, [ebp - 0x60]
push eax
mov eax, 0x445c2a6a
add eax, 0xc2a4f5c2
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xb2576e1d
sub dword [ebp - 0x60], 0x3de504c7
mov dword [ebp - 0x5c], 0x4f65bed
sub dword [ebp - 0x5c], 0xc389fa78
mov dword [ebp - 0x58], 0xd97a3937
add dword [ebp - 0x58], 0x89f53335
mov dword [ebp - 0x54], 0x31daef5d
add dword [ebp - 0x54], 0xce2510a3
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xf3eeb17e
sub eax, 0xeced9156
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x38618
push 0
call eax
mov ecx, 0x5c228b81
add ecx, 0xa3ddb340
xor esi, esi
add esi, eax
mov edx, 0x19624905
add edx, 0xed9f96fb
add edx, dword [ebp - 0x50]
mov edi, 0x68db8be
add edi, 0x24dc856f
add dword [ebp - 0x48], 0x1caaac82
mov ebx, dword [edx]
add dword [ebp - 0x10], 0xa03efdea
add ebx, edi
xor dword [ebp - 0x2c], ecx
mov dword [esi], ebx
mov dword [ebp - 0x2c], 0xf3fd526b
add esi, 0x50e8e10
add esi, 0xfaf171f4
add edx, 0x40b5a637
add edx, 0xbf4a59cd
loop 0x7003a30
add eax, 0xedd7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc4352a6e
add ecx, 0x42cad592
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x700d408
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x700d476
cmp byte [esi + 0x10], 0
je 0x700d427
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
pop ecx
mov byte [esi + 0x10], 0
push edi
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_fread]
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700d464
push dword [esi + 0xc]
call dword [sym.imp.MSVCR100.dll_feof]
pop ecx
test eax, eax
jne 0x700d464
push str.stream_read_error
push eax
call fcn.070038fd
push dword [esi + 0xc]
call dword [sym.imp.MSVCR100.dll_ftell]
pop ecx
mov dword [esi + 8], eax
mov eax, edi
pop edi
jmp 0x700d478
xor eax, eax
pop esi
pop ebp
ret 8