joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x403bec
cmp byte [esi + 0x3d], 0
je 0x403bec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403bda
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, 0
je 0x403ba1
sub eax, 1
je 0x403ba5
sub eax, 2
jne 0x403bda
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040427a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403bc3
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 0x403bda
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040427a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040427a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040427a
mov esp, ebp
pop ebp
ret

Function at 0x404b1a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404b59
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404b59
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404b59
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404b59
cmp dword [ecx + 0x74], 0xe
jbe 0x404b59
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xf1aeb0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf1aeba
pushal
call 0xf1aec0
pop ebp
sub ebp, 0x10
sub ebp, 0xb1aeb0
jmp 0xf1aed6
mov eax, 0xb1aeb0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a5
mov edx, 0xe00bdee6
xor byte [eax], dl
inc eax
dec ecx
jne 0xf1aeed
jmp 0xf1af00
insd dword es:[edi], dx
sub ebp, dword [ebp + 0x6f]
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40f3ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40f3d9
pop dword [ebp - 0x44]
mov eax, 0x9012da06
sub eax, 0x8fd1e62d
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3bf51
push 0
mov eax, 0xbfb7795d
sub eax, 0xbf752745
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0xcd4bd50f
sub ecx, 0xcd4b94a2
xor edi, edi
add edi, eax
mov esi, 0xd571eb34
sub esi, 0xd52e9734
add esi, dword [ebp - 0x44]
mov ebx, 0xb9a37b50
xor dword [ebp - 0x1c], 0x14bf6c25
mov edx, dword [esi]
add dword [ebp - 0x10], edx
add edx, ebx
mov dword [ebp - 0x2c], 0xe33f1c2c
mov dword [edi], edx
sub dword [ebp - 0xc], edi
add edi, 4
add esi, 0x11ffd5e9
add esi, 0xee002a1b
loop 0x40f434
add eax, 0xa5f59ada
sub eax, 0xa5f4a653
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xf2ae7fe0
sub ecx, 0xf26e7fe0
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40107e
Capabilities:
Delete file
Manipulate console buffer
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.0040dcd0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
xor ebx, ebx
cmp dword [0x48b674], 0x594
push edi
mov dword [ebp - 0x14], ecx
jne 0x4010b6
push ebx
lea eax, [ebp - 0x840]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x47c338]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x47c33c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.00401077
mov eax, dword [0x47c340]
add dword [ebp - 0xc], 0x23f
mov dword [ebp - 0x34], eax
mov eax, dword [0x47c344]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4010f4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
cmp dword [0x48b674], 0xc
mov dword [ebp - 4], eax
jne 0x40114f
push ebx
lea eax, [ebp - 0x840]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
xor eax, eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x1040]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 0x34]
add dword [ebp - 4], eax
mov eax, dword [0x48b674]
cmp eax, 0xfa9
jne 0x40116b
mov dword [0x48b670], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401191
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x48b5c8], ebx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea eax, [edi + edx]
shr edx, cl
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [0x48b66c], 0xf4ea3dee
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add edi, esi
shr esi, cl
mov dword [ebp - 0x1c], edi
add esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
cmp dword [0x48b674], 0xb03
jne 0x401208
push str.yacey_jutesepage_vomebawaridamuzixobonawodewagim
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor dword [ebp - 4], esi
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
add dword [ebp - 0xc], 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010f1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x401443
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4741d1
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
cmp dword [0x48b674], 0x400
push edi
jne 0x401504
push 0xf
pop esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x44], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401be0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401920
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004015d0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.0040192a
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401700
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401aa0
fstp st(0)
or dword [esp + 0x44], 0xffffffff
add esp, 8
cmp dword [esp + 0x2c], 0x10
jb 0x4014f8
push dword [esp + 0x18]
call fcn.00401950
pop ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
call esi
call esi
cmp edi, 0x206d51
jg 0x401521
inc edi
cmp edi, 0x4eed4
jl 0x40150c
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp esi, 0x2b2589
jg 0x40153b
inc esi
cmp esi, 0x118b1
jl 0x401523
xor esi, esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
cmp esi, 0x2afdec
jle 0x40155b
cmp dword [esp + 0x10], 0x787c7e45
jne 0x401564
inc esi
cmp esi, 0x42f7
jl 0x40153d
mov eax, dword [0x47ec8c]
mov dword [0x48b674], eax
call fcn.00401244
mov esi, 0x3078f
cmp dword [0x48b674], 0x51f
jne 0x40158d
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
dec esi
jne 0x401578
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403400
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b1c8]
jne 0x40340a
repz ret
jmp fcn.00407fee
Function at 0x407c1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040490b
and dword [ebp - 4], 0
cmp dword [0x48062c], 0
mov ebx, eax
jne 0x407ccc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407d7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407d7d
push eax
call fcn.00404899
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48062c], eax
call esi
push eax
call fcn.00404899
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x480630], eax
call esi
push eax
call fcn.00404899
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x480634], eax
call esi
push eax
call fcn.00404899
pop ecx
mov dword [0x48063c], eax
test eax, eax
je 0x407ccc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404899
pop ecx
mov dword [0x480638], eax
mov eax, dword [0x480638]
cmp eax, ebx
je 0x407d24
cmp dword [0x48063c], ebx
je 0x407d24
push eax
call fcn.00404914
push dword [0x48063c]
mov esi, eax
call fcn.00404914
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407d24
test edi, edi
je 0x407d24
call esi
test eax, eax
je 0x407d1b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407d1b
test byte [ebp - 0xc], 1
jne 0x407d24
or dword [ebp + 0x10], 0x200000
jmp 0x407d5d
mov eax, dword [0x480630]
cmp eax, ebx
je 0x407d5d
push eax
call fcn.00404914
pop ecx
test eax, eax
je 0x407d5d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407d5d
mov eax, dword [0x480634]
cmp eax, ebx
je 0x407d5d
push eax
call fcn.00404914
pop ecx
test eax, eax
je 0x407d5d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48062c]
call fcn.00404914
pop ecx
test eax, eax
je 0x407d7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407d7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9f21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.009f2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009f2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009f2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009f2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x9f2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x9f2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa0487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9f2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9f2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x1000103f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
xor esi, esi
push edi
cmp dword [0x100d22e0], esi
jne 0x1000107d
call ebp
test eax, eax
jns 0x10001073
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x100d22dc], eax
mov dword [0x100d22e0], 1
mov eax, dword [0x100d22dc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10001099
push dword [esp + 0x14]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x100010c9
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x100010c0
call ebp
test eax, eax
jns 0x100010b1
push dword [ebx + 0xc]
call dword [ebx + 8]
jmp 0x100010b6
push dword [ebx + 4]
call dword [ebx]
test eax, eax
je 0x100010c9
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push dword [esp + 0x14]
push eax
call edi
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x100012f2
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [0x100d2308], edi
je 0x10001309
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x100d2300], edi
jne 0x1000134f
cmp dword [0x100d2308], edi
jne 0x10001322
call fcn.100010d1
test eax, eax
je 0x10001354
mov eax, dword [0x100d22fc]
mov esi, dword [0x100ce488]
cmp eax, edi
jne 0x10001344
push str.ActivateActCtx
call fcn.1000137a
cmp eax, edi
je 0x10001354
mov dword [0x100d22fc], eax
push dword [esp + 0xc]
push esi
call eax
cmp eax, edi
je 0x10001354
xor edi, edi
inc edi
jmp 0x10001373
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x10001369
cmp eax, 0x7e
je 0x10001369
cmp eax, 0x78
jne 0x10001373
xor eax, eax
inc eax
mov dword [0x100d2300], eax
mov edi, eax
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x10008bbb
Capabilities:
Create process on windows

Disassembly:
push 0x9c
mov eax, 0x100a65c1
call fcn.10088636
mov ebx, ecx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x68], esp
xor edi, edi
push 0x100b1a3c
mov dword [ebp - 4], edi
call fcn.10003c27
lea ecx, [ebp + 8]
call fcn.10012841
lea eax, [ebp + 0x98]
push eax
lea esi, [ebp - 0x2c]
call fcn.100019af
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x68], esp
push str.cmdline
mov byte [ebp - 4], 1
call fcn.10003c27
lea ecx, [ebp + 8]
call fcn.10012841
lea eax, [ebp + 0x98]
push eax
lea esi, [ebp - 0x64]
call fcn.100019af
push str.open
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.10003c27
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xa4]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.10087ea0
mov eax, dword [ebp - 0x28]
add esp, 0xc
push 8
mov dword [ebp - 0xa4], esi
pop esi
mov dword [ebp - 0xa0], 0x400
cmp dword [ebp - 0x14], esi
jae 0x10008c6e
lea eax, [ebp - 0x28]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], esi
jae 0x10008c7f
lea eax, [ebp - 0x44]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], esi
jae 0x10008c90
lea eax, [ebp - 0x60]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0x88], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10008d08
cmp dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x28]
jae 0x10008cbc
lea esi, [ebp - 0x28]
call fcn.10014ca5
push eax
push esi
push str.Failed_to_ShellExecuteEx__s._Last_error____s
lea ecx, [ebx + 0xc]
call fcn.100146f2
add esp, 0xc
xor ebx, ebx
push edi
push 1
lea esi, [ebp - 0x48]
call fcn.10001b64
push edi
push 1
lea esi, [ebp - 0x64]
call fcn.10001b64
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.10001b64
lea edi, [ebp + 8]
call fcn.100127e2
mov eax, ebx
call fcn.100886b9
ret 0xc8
xor ebx, ebx
inc ebx
jmp 0x10008cd5
Function at 0x1001485c
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x4c
lea ebp, [esp - 4]
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp + 0x4c], eax
push 0x88
mov eax, 0x100a4e45
call fcn.10088600
and dword [ebp - 4], 0
cmp dword [0x100d25d0], 0
mov edi, dword [ebp + 0x58]
mov esi, ecx
mov ebx, edx
jne 0x1001489e
call fcn.100149e1
test eax, eax
je 0x100149ab
push dword [ebp + 0x5c]
mov ecx, ebx
push edi
push esi
lea ebx, [ebp + 0x14]
call fcn.10014cdb
mov byte [ebp - 4], 1
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x100148bd
lea eax, [ebp + 0x18]
push 0xfde9
push eax
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x90]
push eax
mov dword [ebp - 0x94], ecx
call fcn.10011356
mov byte [ebp - 4], 2
push dword [ebp - 0x94]
lea ecx, [ebp + 0x30]
call fcn.10003c46
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x10014907
push dword [ebp - 0x94]
call fcn.10084987
pop ecx
push str.S:_ML__NW___LW_
lea esi, [ebp]
call fcn.10014487
mov byte [ebp - 4], 5
cmp dword [0x100d2838], 8
mov eax, dword [0x100d2824]
jae 0x1001492b
mov eax, 0x100d2824
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.100160fc
push 0xffffffffffffffff
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x34]
xor esi, esi
cmp dword [ebp + 0x48], 0x10
mov dword [ebp + 0xc], esi
jae 0x10014955
lea eax, [ebp + 0x34]
push esi
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x44]
push eax
push dword [0x100d25d0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp + 0x10], esi
je 0x10014984
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x10], esi
cmp dword [ebp + 4], esi
je 0x10014995
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp + 4], esi
push esi
push 1
lea ecx, [ebp + 0x30]
call fcn.10003f8e
push esi
push 1
lea esi, [ebp + 0x14]
call fcn.10001b64
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c]
xor ecx, ebp
call fcn.10084554
add ebp, 0x50
leave
ret 8

Function at 0x10015164
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1001517b
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100151b0
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100151ac
cmp edi, eax
jae 0x100151b0
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x1001519e
cmp edi, eax
jb 0x100151b4
xor eax, eax
jmp 0x100151bd
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x10016472
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x234
lea ebp, [esp - 4]
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp + 0x234], eax
push 8
mov eax, 0x100a222d
call fcn.100885cd
mov eax, dword [ebp + 0x240]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
xor eax, eax
mov dword [ebp + 0x28], 7
mov dword [ebp + 0x24], ebx
mov word [ebp + 0x14], ax
push str.shell32.dll
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x1001650a
push str.SHGetKnownFolderPath
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1001650a
mov esi, 0x100b0420
lea edi, [ebp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push ebx
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp]
push ecx
movsd dword es:[edi], dword [esi]
call eax
test eax, eax
jl 0x1001650a
push dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
call fcn.10001a93
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0x24], ebx
jne 0x10016556
push 0x208
lea eax, [ebp + 0x2c]
push ebx
push eax
call fcn.10087ea0
add esp, 0xc
lea eax, [ebp + 0x2c]
push eax
push 1
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x10016544
mov esi, dword [ebp - 0x14]
push 0x100ace24
call fcn.10003c27
jmp 0x10016584
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.10001a93
cmp dword [ebp + 0x24], ebx
je 0x10016578
mov edi, dword [ebp + 0x24]
dec edi
lea eax, [ebp + 0x10]
call fcn.10017641
push 0x5c
pop ecx
cmp cx, word [eax]
je 0x10016578
push 0x100b373c
lea eax, [ebp + 0x10]
push eax
call fcn.10003e6d
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x10]
push eax
call fcn.100019af
push ebx
push 1
lea esi, [ebp + 0x10]
call fcn.10001b64
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
call fcn.10084554
add ebp, 0x238
leave
ret

Function at 0x100165b5
Capabilities:
Get common file path

Disassembly:
push 0x10
mov eax, 0x100a220a
call fcn.100885cd
xor edi, edi
mov dword [ebp - 4], edi
push 0x100ace24
mov esi, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
call fcn.10003c27
push edi
mov dword [ebp - 4], edi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
inc esi
mov dword [ebp - 0x14], esi
call edi
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x18], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008356e
pop ecx
mov dword [ebp - 0x10], eax
push eax
push dword [ebp - 0x18]
mov dword [ebp - 4], esi
call edi
test eax, eax
je 0x1001661c
push dword [ebp - 0x10]
push ebx
call fcn.10001a93
push esi
mov esi, 0x100b373c
push esi
mov eax, ebx
call fcn.10014f4c
mov ecx, dword [ebx + 0x14]
dec ecx
cmp eax, ecx
je 0x10016639
push esi
push ebx
call fcn.10003e6d
push dword [ebp - 0x10]
call fcn.10084549
pop ecx
mov eax, ebx
call fcn.100886a5
ret