joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51e16b
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push edi
mov edi, ecx
call fcn.0051e39a
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x51e27d
cmp dword [ebp + 0xc], 0xffffffff
jne 0x51e1a0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x51e195
mov eax, dword [eax]
push eax
call ecx
pop ecx
xor eax, eax
jmp 0x51e28a
push ebx
push esi
push 0x1c
call fcn.00415ffa
mov ebx, eax
xor esi, esi
pop ecx
test ebx, ebx
je 0x51e1c1
mov dword [ebx + 4], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], 7
jmp 0x51e1c3
mov ebx, esi
push dword [ebp + 8]
mov eax, dword [edi + 0x5c]
mov dword [ebx], eax
lea eax, [edi + 0x18]
push 0x608be0
push eax
lea eax, [ebp - 0x48]
push 0x5ff8fc
push eax
call fcn.0044a28b
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0044a32b
add esp, 0xc
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004ba2bc
add esp, 0xc
lea ecx, [ebx + 4]
push eax
call fcn.00446faf
lea ecx, [ebp - 0x18]
call fcn.00403f80
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea ecx, [ebp - 0x48]
call fcn.00403f80
push esi
push esi
push ebx
push 0x51e2cd
push esi
push esi
call fcn.00577219
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x51e277
cmp ebx, 0xffffffff
je 0x51e277
cmp dword [ebp + 0xc], 0
je 0x51e26c
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x51e274
cmp eax, 0x102
je 0x51e262
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x51e277
push ebx
mov ecx, edi
call fcn.0051e141
jmp 0x51e277
push ebx
mov ecx, edi
call fcn.0051e141
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebx
jmp 0x51e28a
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.0051e28f
pop edi
leave
ret 8

Function at 0x51e449
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x44]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x38]
mov ebx, dword [edi + 0x34]
cmp ebx, eax
je 0x51e48d
mov esi, eax
mov edi, dword [ebx]
push 0x1d4c0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
add ebx, 4
cmp ebx, esi
jne 0x51e46c
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51fa1a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa78
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x51fa31
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51fc2c
push ebx
push edi
lea eax, [ebp + 8]
xor edi, edi
push eax
push 0x5d5a2c
inc edi
xor ebx, ebx
push edi
push ebx
push 0x5da67c
mov dword [ebp + 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp + 8]
js 0x51fc1c
test eax, eax
je 0x51fc1c
lea edx, [ebp - 4]
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push edx
push 0x5ff954
push eax
call dword [ecx]
mov ecx, dword [ebp - 4]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x51fc0b
cmp dword [esi + 0x14], 8
jb 0x51faa1
mov esi, dword [esi]
mov eax, dword [ecx]
push 2
push esi
push ecx
call dword [eax + 0x14]
test eax, eax
js 0x51fc08
mov esi, 0x208
lea eax, [ebp - 0x210]
push esi
push ebx
push eax
call fcn.00548bf0
push 0x250
lea eax, [ebp - 0xa78]
push ebx
push eax
call fcn.00548bf0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xa78]
add esp, 0x18
mov ecx, dword [eax]
push 6
push edx
push 0x104
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x51fc08
push esi
lea eax, [ebp - 0x418]
push ebx
push eax
call fcn.00548bf0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x418]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x51fc08
push esi
lea eax, [ebp - 0x620]
push ebx
push eax
call fcn.00548bf0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x620]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x51fc08
push esi
lea eax, [ebp - 0x828]
push ebx
push eax
call fcn.00548bf0
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
add esp, 0xc
mov dword [ebp - 8], ebx
mov ecx, dword [eax]
push edx
push 0x104
lea edx, [ebp - 0x828]
push edx
push eax
call dword [ecx + 0x40]
test eax, eax
js 0x51fc08
lea eax, [ebp - 0x210]
push eax
call fcn.00553a47
mov esi, dword [ebp + 0xc]
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00407f20
lea eax, [ebp - 0x418]
push eax
call fcn.00553a47
pop ecx
push eax
lea eax, [ebp - 0x418]
push eax
lea ecx, [esi + 0x18]
call fcn.00407f20
lea eax, [ebp - 0x620]
push eax
call fcn.00553a47
pop ecx
push eax
lea eax, [ebp - 0x620]
push eax
lea ecx, [esi + 0x30]
call fcn.00407f20
lea eax, [ebp - 0x828]
push eax
call fcn.00553a47
pop ecx
push eax
lea eax, [ebp - 0x828]
push eax
lea ecx, [esi + 0x48]
call fcn.00407f20
mov ecx, dword [ebp - 4]
jmp 0x51fc0d
mov ecx, dword [ebp - 4]
mov edi, ebx
test ecx, ecx
je 0x51fc17
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 8]
jmp 0x51fc1e
mov edi, ebx
test eax, eax
je 0x51fc28
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret
Function at 0x5200ee
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0051f96b
cmp dword [ebp - 8], 0
je 0x52011f
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x52011f
xor esi, esi
inc esi
jmp 0x520121
xor esi, esi
lea ecx, [ebp - 0x18]
call fcn.00403f80
mov eax, esi
pop esi
leave
ret
Function at 0x5206ef
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor eax, eax
inc ebx
mov dword [ebp - 8], eax
cmp dword [edi + 0x34], eax
je 0x520733
lea eax, [ebp - 0x20]
mov dword [ebp - 8], ebx
push eax
lea ecx, [edi + 0x3c]
call fcn.0051f96b
cmp dword [eax + 0x10], 0
je 0x520730
cmp dword [edi + 0x80], 0
mov eax, ebx
je 0x520733
mov byte [ebp - 1], 0
jmp 0x520736
mov eax, dword [ebp - 8]
mov byte [ebp - 1], bl
test al, 1
je 0x520742
lea ecx, [ebp - 0x20]
call fcn.00403f80
cmp byte [ebp - 1], 0
jne 0x52083c
lea esi, [edi + 0x24]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x520759
mov eax, dword [esi]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0x208
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.00548bf0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x52077e
mov esi, dword [esi]
xor ecx, ecx
lea eax, [ebp - 0x260]
push ecx
push ecx
push 0x104
push eax
push esi
push ecx
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x52083c
push 0
lea ecx, [ebp - 0x58]
call fcn.005afd80
lea eax, [edi + 0x3c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], eax
push ecx
mov ecx, eax
call fcn.0051f96b
cmp dword [eax + 0x14], 8
jb 0x5207c0
mov eax, dword [eax]
push ebx
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040921d
sub esp, 0x18
lea eax, [ebp - 0x260]
mov ecx, esp
push eax
call fcn.0040921d
lea ecx, [ebp - 0x58]
call fcn.005add90
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00403f80
test esi, esi
je 0x52082e
lea eax, [edi + 0x70]
mov edi, dword [ebp - 8]
push eax
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.0051f96b
push eax
call fcn.0052101d
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00403f80
test esi, esi
jne 0x520830
sub esp, 0x18
mov ecx, edi
push esp
call fcn.0051f96b
lea ecx, [ebp - 0x58]
call fcn.005adc60
xor ebx, ebx
lea ecx, [ebp - 0x58]
call fcn.005afd10
mov eax, ebx
jmp 0x52083e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x520971
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov edi, ecx
xor esi, esi
push esi
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005ac890
mov ecx, eax
call fcn.005abdc0
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5209ec
push 1
lea eax, [edi + 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.005ac890
mov ecx, eax
call fcn.005abdc0
cmp dword [ebp - 0x20], esi
je 0x5209e4
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x18]
cmovae ecx, dword [ebp - 0x30]
cmp dword [ebp - 4], 8
push ecx
cmovae eax, dword [ebp - 0x18]
push eax
call fcn.00455ca2
pop ecx
pop ecx
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea ecx, [ebp - 0x18]
call fcn.00403f80
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x52101d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x10], 0
je 0x521094
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x52103e
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x521094
push 0x208
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.00548bf0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x521067
mov edi, dword [edi]
lea eax, [ebp - 0x208]
push eax
push edi
call fcn.00456ab6
cmp dword [esi + 0x14], 8
pop ecx
pop ecx
jb 0x52107e
mov esi, dword [esi]
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.00577501
pop ecx
pop ecx
test eax, eax
jne 0x521094
inc eax
jmp 0x521096
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x522612
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xor ebx, ebx
push edi
push 0x60
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x40c], ebx
call esi
mov edi, eax
test edi, edi
jne 0x52265a
push 2
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jne 0x52265a
call fcn.00521c22
mov esi, eax
jmp 0x5226f2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x522674
call fcn.00521c22
jmp 0x5226e5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x52266d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x52269a
mov esi, 0x8007000e
jmp 0x5226e7
push eax
lea ecx, [ebp - 0x40c]
call fcn.00521a99
cmp dword [ebp - 0x40c], 0
je 0x522693
push esi
push dword [ebp - 0x40c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x52266d
mov eax, dword [ebp - 0x40c]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 8]
push dword [ebp - 0x40c]
call fcn.005224fd
mov esi, eax
test edi, edi
je 0x5226f2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x52270b
lea ecx, [ebp - 0x40c]
call fcn.00521e43
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x52356b
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push esi
push esi
call fcn.004ff23c
push 1
push dword [ebp + 8]
call fcn.0044cf0f
add esp, 0x14
push 0x5f9b84
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
call fcn.00521c4e
pop ecx
push esi
push dword [ebp + 8]
mov edi, 0x6314d8
push esi
mov ecx, edi
call fcn.00521efa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00522da0
add esp, 0xc
mov ecx, edi
mov esi, eax
call fcn.00523013
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x5235e4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea ecx, [ebp - 0x18]
push esi
push dword [ebp + 0x14]
call fcn.0040921d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 1
push eax
push dword [ebp + 0x10]
push esi
call fcn.005ad360
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.00403f80
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x52361d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x523660
push dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0040921d
push 1
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
call fcn.005ad360
add esp, 0x10
mov ecx, esi
push eax
call fcn.00446faf
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea ecx, [ebp - 0x18]
call fcn.00403f80
mov eax, esi
pop esi
leave
ret

Function at 0x52424a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push str._sogouexplorer.exe
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0044a2d9
add esp, 0xc
lea eax, [ebp - 0x18]
cmp dword [ebp - 4], 8
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea ecx, [ebp - 0x18]
neg ebx
sbb bl, bl
inc bl
call fcn.00403f80
lea ecx, [ebp + 8]
call fcn.00403f80
mov al, bl
pop ebx
leave
ret 0x18
Function at 0x5265df
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.0052642c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x5265f6
mov eax, dword [eax]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push dword [esi + 0x3c]
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [esi + 0x38]
mov dword [esi + 0x40], eax
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.004065d3
mov ecx, esi
call fcn.005267dc
pop edi
pop esi
pop ebp
ret 8
Function at 0x5a69c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x632d24], eax
je 0x5a69e4
mov eax, 0x10dd
jmp 0x5a6b8c
cmp dword [0x632d28], 0
je 0x5a69f7
mov eax, dword [0x632d28]
jmp 0x5a6b8c
cmp dword [ebp + 0xc], 0
jne 0x5a6a07
mov eax, 0x57
jmp 0x5a6b8c
cmp dword [ebp + 8], 0
jne 0x5a6a17
mov eax, 6
jmp 0x5a6b8c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x5a6a40
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x632d28], ecx
mov edx, dword [ebp + 8]
mov dword [0x632d2c], edx
mov eax, dword [ebp - 8]
jmp 0x5a6b8c
push 0x18
call fcn.00415ffa
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5a6a9b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x632d28], ecx
cmp dword [ebp - 4], 0
je 0x5a6a8a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.00541bf5
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x632d2c], ecx
mov eax, dword [ebp - 8]
jmp 0x5a6b8c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.005a69a0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005a69a0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x5a6adb
cmp dword [ebp - 0xc], 0x1e
jbe 0x5a6af7
mov dword [ebp - 8], 9
cmp dword [0x632d1c], 0
je 0x5a6af2
jmp 0x5a6a69
jmp 0x5a6a60
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x5a6b1e
mov dword [ebp - 8], 9
cmp dword [0x632d1c], 0
je 0x5a6b19
jmp 0x5a6a69
jmp 0x5a6a60
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x5a6b49
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x5a6a60
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x632d34]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x632d34], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x5a6c40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x632d24], eax
je 0x5a6c5d
mov eax, 0x10dd
jmp 0x5a6d40
mov eax, dword [0x632d34]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a6cdc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x5a6cb8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x5a6cb8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.005a5850
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.00541bf5
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x5a6c65
mov dword [0x632d34], 0
call fcn.005a6130
mov ecx, dword [0x632d30]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x5a6d2a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00541bf5
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x5a6cf4
mov dword [0x632d30], 0
mov dword [0x632d24], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5abc60
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbdb2
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5abcc3
mov ecx, dword [ebp + 8]
call fcn.00403f32
push eax
push str.__rNX__W
push 2
call fcn.005bb560
push eax
call fcn.005bb420
add esp, 0x10
xor eax, eax
jmp 0x5abd98
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408747
mov dword [ebp - 4], 0
push 0x5f80ec
lea ecx, [ebp - 0x40]
call fcn.0040921d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00445400
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403fae
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x28]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x5abd66
mov ecx, dword [ebp + 8]
call fcn.00403f32
push eax
push 0x5f80d8
push 2
call fcn.005bb560
push eax
call fcn.005bb420
add esp, 0x10
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403fae
mov eax, dword [ebp - 0x48]
jmp 0x5abd98
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403fae
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00542347
mov esp, ebp
pop ebp
ret 4
Function at 0x5abdc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbe2b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 0x2c8], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408747
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x290]
push edx
call fcn.004bdba0
add esp, 8
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c4], 0
jmp 0x5abe43
mov eax, dword [ebp - 0x2c4]
add eax, 1
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x2c4], 0x15
jae 0x5abf71
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x2c0]
call fcn.00408747
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c4]
mov eax, dword [edx*4 + 0x62c660]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040921d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x278]
push edx
call fcn.004bdba0
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
call fcn.00403fae
push 0
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x290]
call fcn.00446f06
cmp eax, 0xffffffff
je 0x5abf4e
mov ecx, dword [ebp - 0x2c4]
mov edx, dword [ecx*4 + 0x62c660]
push edx
lea ecx, [ebp - 0x260]
call fcn.0040921d
mov byte [ebp - 4], 6
push 0
mov eax, dword [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
mov ecx, dword [ebp - 0x2cc]
call fcn.005ac030
mov dword [ebp - 0x2d0], eax
mov edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.005ab920
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2a8]
call fcn.00403fae
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x260]
call fcn.00403fae
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00403fae
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c0]
call fcn.00403fae
jmp 0x5abe34
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00548bf0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x230]
call fcn.004107c0
cmp dword [ebp + 0x10], 0
je 0x5abfce
push 1
lea eax, [ebp - 0x230]
push eax
call fcn.0044549c
add esp, 8
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00444eb9
mov edx, dword [ebp - 0x2c8]
or edx, 1
mov dword [ebp - 0x2c8], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.00403fae
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00403fae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00542347
mov esp, ebp
pop ebp
ret 0xc