joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011a1
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401201
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
xor eax, eax
inc eax
cmp dword [ebp - 0x10], ebx
cmovne ebx, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040db50
leave
ret

Function at 0x401210
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ecx
call fcn.0040117f
pop ecx
test eax, eax
jne 0x401227
push 0xb
pop eax
jmp 0x401248
call fcn.004010d0
test eax, eax
jne 0x401235
call fcn.004011a1
push 1
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ecx
pop ebp
ret

Function at 0x401313
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x4013a9
xor ebx, ebx
push ebx
push 0x1a
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4013a9
push edi
push 0x411aa4
mov edi, 0x104
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push 0x411ab0
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x18
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push str.zoomtest
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
pop edi
test eax, eax
je 0x4013a9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
jmp 0x4013ab
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040db50
leave
ret
Function at 0x4013b9
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0x1a
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40145b
push str.ZoomdataZoom.us.ini
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
pop ecx
pop ecx
test eax, eax
jne 0x40145b
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
push 0
push str.com.zoom.test.disable_crash_handler
push 0x411b18
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40145b
lea eax, [ebp - 0x14]
push 0x411b2c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
neg eax
pop ecx
sbb al, al
pop ecx
inc al
jmp 0x40145d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040db50
leave
ret

Function at 0x401d1a
Capabilities:
Enumerate processes

Disassembly:
push 0x294
mov eax, 0x40ef25
call fcn.0040ee58
mov edi, ecx
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.00404782
xor ebx, ebx
mov dword [esi + 4], esi
push ebx
mov dword [esi], esi
mov dword [esi + 8], esi
push 2
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401d5a
xor eax, eax
jmp 0x401e4e
push 0x228
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], 0x22c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x18], ebx
add esp, 0xc
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x288]
mov dword [ebp - 4], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401e34
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x28c], ebx
push eax
mov ecx, edi
call fcn.00404ea3
mov eax, dword [ebp - 0x290]
cmp byte [eax + 0xd], 0
jne 0x401dd5
cmp ebx, dword [eax + 0x10]
jb 0x401dd5
cmp eax, dword [edi]
jne 0x401dd7
xor ebx, ebx
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x30]
push eax
mov edx, ebx
call fcn.00401be2
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.00404117
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2a0]
mov ecx, edi
push eax
call fcn.00405259
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.004040b9
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401d9f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.004040b9
xor eax, eax
inc eax
call fcn.0040ee13
ret
Function at 0x4024cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfb4
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x402635
test edx, edx
je 0x402635
test esi, esi
je 0x402635
and dword [ebp - 0xfa8], 0
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xfa8]
jne 0x40250f
sub ecx, ebx
sar ecx, 1
je 0x402635
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xfa8]
jne 0x40252d
sub ecx, ebx
sar ecx, 1
je 0x402635
lea eax, [ebp - 0xfa8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push edx
push edi
mov dword [ebp - 0xfa8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402635
cmp dword [ebp - 0xfa8], ebx
je 0x402635
push 0xfa0
xor edi, edi
lea eax, [ebp - 0xfa4]
push ebx
inc edi
push eax
mov dword [ebp - 0xfb0], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xfac], 0xf9e
lea eax, [ebp - 0xfac]
push eax
lea eax, [ebp - 0xfa4]
push eax
lea eax, [ebp - 0xfb0]
push eax
push ebx
push esi
push dword [ebp - 0xfa8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xfa8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402635
cmp dword [ebp - 0xfb0], edi
jne 0x402635
lea ecx, [ebp - 0xfa4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4025e5
sub ecx, edx
sar ecx, 1
je 0x402635
push 0x25
pop ecx
cmp cx, word [ebp - 0xfa4]
jne 0x402606
mov eax, edi
jmp 0x402637
lea eax, [ebp - 0xfa4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
lea eax, [ebp - 0xfa4]
je 0x402632
push 0x800
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
neg eax
sbb eax, eax
neg eax
jmp 0x402637
push ebx
jmp 0x402622
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040db50
leave
ret 0xc
Function at 0x402648
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40279c
test edi, edi
je 0x40279c
mov ecx, esi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40267b
sub ecx, edx
sar ecx, 1
je 0x40279c
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x402695
sub ecx, edx
sar ecx, 1
je 0x40279c
push 0x190
lea eax, [ebp - 0x194]
mov dword [ebp - 0x198], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x198]
push eax
push 0x20019
push ebx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402783
cmp dword [ebp - 0x198], ebx
je 0x402797
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0xc7
push eax
lea eax, [ebp - 0x194]
mov esi, ebx
push eax
push ebx
jmp 0x402773
lea ecx, [ebp - 0x194]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40271c
sub ecx, edx
sar ecx, 1
je 0x402783
push edi
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x198]
call fcn.004024cc
push 0x190
lea eax, [ebp - 0x194]
mov dword [ebp - 0x19c], 0xc7
push ebx
push eax
inc esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x19c]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x194]
push eax
push esi
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x402713
cmp dword [ebp - 0x198], ebx
je 0x402797
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x40279e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040db50
leave
ret 8
Function at 0x40280c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7cf
mov edi, 0x41c4c8
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4029c5
push edi
mov ecx, 0x41e410
call fcn.00404333
mov esi, 0x7d0
mov ecx, edi
mov edx, esi
call fcn.0040539d
push eax
mov ecx, 0x41e428
call fcn.00404333
mov edx, esi
mov ecx, edi
call fcn.00405358
test eax, eax
je 0x402880
cmp eax, 0x7cf
jae 0x402880
xor ecx, ecx
mov word [eax*2 + 0x41c4ca], cx
push ebx
push 0x1a
mov esi, 0x41d468
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40289f
push ecx
mov ecx, esi
call fcn.004053ba
add esp, 4
push 4
xor edi, edi
mov dword [ebp - 0x214], 0x24
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x41e40c], eax
test eax, eax
je 0x4029c5
mov dword [eax], ebx
mov esi, ebx
push 0x20c
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push ebx
push dword [ebp + esi - 0x214]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x402924
cmp dword [ebp + esi - 0x214], 0x24
jne 0x4029ba
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4029ba
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40292d
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x212], ax
je 0x402952
mov word [ebp + ecx*2 - 0x210], ax
inc ecx
lea ebx, [ecx + ecx]
lea eax, [ebx + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x41e40c]
mov dword [esi + ecx], eax
mov eax, dword [0x41e40c]
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x4029b8
lea eax, [ebx + 2]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [ebp - 0x210]
push eax
mov eax, dword [0x41e40c]
push dword [esi + eax]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
add esi, 4
push 0
pop ebx
cmp esi, 4
jb 0x4028cd
mov dword [0x41e408], edi
jmp 0x4029c1
xor ebx, ebx
call fcn.004027af
mov edi, ebx
mov eax, edi
jmp 0x4029c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040db50
leave
ret
Function at 0x4029d6
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef4
call fcn.0040eed0
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1f40
lea eax, [ebp - 0x2ee8]
push esi
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2eec], edi
lea eax, [ebp - 0x2eec]
push eax
push esi
lea eax, [ebp - 0x2ee8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x402ad7
lea eax, [ebp - 0xfa8]
xor esi, esi
mov dword [ebp - 0x2ef0], eax
mov ebx, 0xfa0
mov eax, dword [ebp - 0x2eec]
inc esi
and eax, 0xfffffffc
mov word [ebp - 0x2ef2], bx
cmp eax, 4
jbe 0x402ad2
push ebx
lea eax, [ebp - 0xfa8]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xfa8]
push 0x7cf
push eax
push dword [ebp + esi*4 - 0x2ee8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0xfa8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x402a8e
sub ecx, edx
sar ecx, 1
push edi
push dword [ebp + esi*4 - 0x2ee8]
lea eax, [ecx + ecx]
mov ecx, 0x41c4c0
mov word [ebp - 0x2ef4], ax
lea eax, [ebp - 0x2ef4]
push eax
call fcn.00402ae8
test eax, eax
je 0x402ad7
mov ecx, dword [ebp - 0x2eec]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x402a5b
xor eax, eax
inc eax
jmp 0x402ad9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040db50
leave
ret

Function at 0x402ce1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREPoliciesZoomZoom_MeetingsGeneral
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d56
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push esi
push str.Disable3rdModuleVerify
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402d56
cmp dword [ebp - 8], edi
jne 0x402d56
cmp dword [ebp - 0xc], edi
jne 0x402d56
xor eax, eax
cmp dword [ebp - 0x10], eax
sete al
jmp 0x402d59
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4030f8
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push ebx
push edi
lea edi, [ebp - 0x18]
mov ebx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ebx, ebx
je 0x403223
push 0xc
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x403223
mov edx, dword [ebp - 0x14]
mov eax, 0x5a4d
mov dword [ebp - 8], edx
cmp word [ebx], ax
jne 0x403223
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0xc], ecx
lea eax, [ecx + 0xf8]
cmp eax, edx
jae 0x403223
lea eax, [ecx + ebx]
cmp dword [eax], 0x4550
jne 0x403223
movzx ecx, word [eax + 4]
push esi
mov esi, 0x14c
cmp si, cx
jne 0x403178
xor edi, edi
jmp 0x403193
mov esi, 0x200
cmp si, cx
je 0x403190
mov esi, 0x8664
cmp si, cx
jne 0x403222
xor edi, edi
inc edi
mov esi, dword [eax + 0x28]
add esi, ebx
push edx
mov edx, ebx
mov ecx, esi
call fcn.0040386f
add esp, 4
test eax, eax
je 0x403222
call fcn.0040388c
test eax, eax
je 0x403222
mov ecx, dword [ebp - 0xc]
mov edx, ebx
push edi
push dword [ebp - 8]
lea ecx, [ecx + ebx]
call fcn.004038d6
pop ecx
pop ecx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x40
push 0x14
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x403222
test edi, edi
jne 0x4031f2
mov eax, dword [0x41c028]
mov dword [esi], eax
mov al, byte [0x41c02c]
mov byte [esi + 4], al
jmp 0x403203
mov ax, word [0x41c030]
mov word [esi], ax
mov al, byte [0x41c032]
mov byte [esi + 2], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x403227
Capabilities:
Create directory
Create thread
Get common file path
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x41e45c], 0
jne 0x40337e
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x404]
push edi
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x404]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40337c
push 0x413720
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push 0x413724
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x404]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._appsafecheck.txt
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x404]
mov edi, 0x80
push esi
push edi
push 2
push esi
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x41e49c], eax
cmp eax, 0xffffffff
je 0x4032fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x41e49c], 0xffffffff
push esi
push edi
push 3
push esi
push 3
push 0xc0000000
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x41e49c], eax
cmp eax, 0xffffffff
je 0x40337c
push esi
push 0x7fffffff
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push esi
push esi
xor edi, edi
mov dword [0x41e490], eax
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41e494], eax
cmp dword [0x41e490], esi
je 0x40337c
test eax, eax
je 0x40337c
push esi
push 4
push 0x41c4c0
push 0x403430
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41e498], eax
test eax, eax
je 0x40337c
push eax
mov dword [0x41e45c], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040db50
leave
ret
Function at 0x403447
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x40f14d
call fcn.0040ee58
mov edi, ecx
mov eax, dword [edi + 0x1fd0]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x1fd4]
push 0xffffffffffffffff
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x403570
lea eax, [edi + 0x1fa0]
lea ebx, [edi + 0x1fb8]
xor ecx, ecx
mov esi, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ecx
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], edx
cmp eax, ebx
je 0x4034ca
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x38], esi
mov dword [ebx], edx
mov dword [ebp - 0x34], ecx
mov dword [ebx + 4], edx
mov dword [ebp - 0x30], eax
mov dword [ebx + 8], edx
mov dword [ebp - 0x2c], ecx
lea eax, [edi + 0x1fa0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [ebp - 0x34]
je 0x403546
mov ebx, dword [ebp - 0x2c]
and dword [ebp - 0x2c], 0
mov edx, esi
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404668
pop ecx
push 2
push 0
push 0
push dword [edi + 0x1fdc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x2c]
push 0
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push dword [edi + 0x1fdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi + 0x1fdc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 0x28]
call fcn.004040b9
add esi, 0x18
cmp esi, ebx
jne 0x4034df
lea ebx, [edi + 0x1fb8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040403e
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
lea eax, [edi + 0x1fa0]
je 0x40348b
xor eax, eax
call fcn.0040ee13
ret
Function at 0x4038d6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov edx, dword [ebp + 0xc]
test ecx, ecx
je 0x4039b8
mov eax, 0xd0
test edx, edx
push esi
push edi
lea esi, [eax - 0x10]
cmove eax, esi
mov edi, dword [eax + ecx]
test edi, edi
je 0x4039b6
cmp dword [eax + ecx + 4], 0
je 0x4039b6
cmp edi, dword [ebp + 8]
jae 0x4039b6
test edx, edx
jne 0x403920
mov edi, dword [edi + ebx + 0xc]
jmp 0x403924
mov edi, dword [edi + ebx + 0x18]
test edi, edi
je 0x4039b6
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.0040386f
add esp, 4
test eax, eax
je 0x4039b6
jmp 0x40399f
push dword [ebp + 8]
mov edx, ebx
mov ecx, esi
call fcn.0040386f
add esp, 4
test eax, eax
je 0x4039a5
call fcn.0040388c
test eax, eax
je 0x4039a5
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 0xc], 0
je 0x40397b
mov byte [esi], 0xc3
jmp 0x40398c
mov ax, word [0x41c034]
mov word [esi], ax
mov al, byte [0x41c036]
mov byte [esi + 2], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, 4
mov esi, dword [edi]
test esi, esi
jne 0x403941
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
pop ebx
leave
ret