joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb9c0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4fb9e5
lea eax, [edi + 2]
pop edi
pop esi
add esp, 0x1c
ret
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4fba08
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
lea eax, [esi + 3]
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x512710
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, edi
shr eax, 5
inc eax
mov ebx, edi
mov ecx, edi
cmp edi, eax
jb 0x51274f
jmp 0x512730
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + ecx - 1]
mov esi, ebx
shl esi, 5
add edx, esi
mov esi, ebx
shr esi, 2
add edx, esi
sub ecx, eax
xor ebx, edx
cmp ecx, eax
jae 0x512730
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
dec ecx
and ecx, ebx
mov ebp, dword [edx + ecx*4]
test ebp, ebp
je 0x5127b7
cmp dword [ebp + 0xc], edi
jne 0x5127b0
mov esi, dword [esp + 0x18]
mov ecx, edi
lea edx, [ebp + 0x10]
cmp edi, 4
jb 0x51278c
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x5127b0
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x512778
test ecx, ecx
je 0x5127ce
mov al, byte [edx]
cmp al, byte [esi]
jne 0x5127b0
cmp ecx, 1
jbe 0x5127ce
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x5127b0
cmp ecx, 2
jbe 0x5127ce
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x5127ce
mov ebp, dword [ebp]
test ebp, ebp
jne 0x512765
mov edx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
push edx
call fcn.00512670
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x10]
movzx edx, byte [ecx + 0x14]
mov al, byte [ebp + 5]
movzx ecx, al
not edx
and ecx, 3
test cl, dl
je 0x5127ed
xor al, 3
mov byte [ebp + 5], al
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x51a8be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57f7c4]
jne 0x51a8c8
repz ret
jmp fcn.00526e35
Function at 0x51ff6d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x51ff9e
call fcn.00520d72
mov dword [eax], esi
call fcn.00520d5f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0051b187
add esp, 0x14
push 0x16
pop eax
jmp 0x51fff3
test dword [ebp + 0xc], 0xfffffff9
jne 0x51ff7a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x51ffcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00520d85
pop ecx
call fcn.00520d5f
mov eax, dword [eax]
jmp 0x51fff3
test al, 0x10
jne 0x51fff1
test al, 1
je 0x51fff1
test byte [ebp + 0xc], 2
je 0x51fff1
call fcn.00520d72
mov dword [eax], 5
call fcn.00520d5f
mov dword [eax], 0xd
jmp 0x51ffc2
xor eax, eax
pop esi
pop ebp
ret

Function at 0x541dfc
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.005283db
and dword [ebp - 4], 0
cmp dword [0x584518], 0
mov ebx, eax
jne 0x541ead
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x541f5e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x565a04
push edi
call esi
test eax, eax
je 0x541f5e
push eax
call fcn.00528369
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x584518], eax
call esi
push eax
call fcn.00528369
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x58451c], eax
call esi
push eax
call fcn.00528369
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x584520], eax
call esi
push eax
call fcn.00528369
pop ecx
mov dword [0x584528], eax
test eax, eax
je 0x541ead
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00528369
pop ecx
mov dword [0x584524], eax
mov eax, dword [0x584524]
cmp eax, ebx
je 0x541f05
cmp dword [0x584528], ebx
je 0x541f05
push eax
call fcn.005283e4
push dword [0x584528]
mov esi, eax
call fcn.005283e4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x541f05
test edi, edi
je 0x541f05
call esi
test eax, eax
je 0x541efc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x541efc
test byte [ebp - 0xc], 1
jne 0x541f05
or dword [ebp + 0x10], 0x200000
jmp 0x541f3e
mov eax, dword [0x58451c]
cmp eax, ebx
je 0x541f3e
push eax
call fcn.005283e4
pop ecx
test eax, eax
je 0x541f3e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x541f3e
mov eax, dword [0x584520]
cmp eax, ebx
je 0x541f3e
push eax
call fcn.005283e4
pop ecx
test eax, eax
je 0x541f3e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x584518]
call fcn.005283e4
pop ecx
test eax, eax
je 0x541f5e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x541f60
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401115
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401115
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401107
cmp esi, ecx
jae 0x401115
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4010f5
cmp esi, ecx
jae 0x401115
cmp word [esi], 0
je 0x401115
mov eax, esi
jmp 0x401117
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401590
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0x8004ffff
lea ebx, [esi + 0x10]
je 0x4015d9
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x4015be
push edi
mov ecx, ebx
call fcn.0040234a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x14]
jne 0x4015a8
mov ecx, ebx
call fcn.0040236f
lea edi, [esi + 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.0040262e
jmp 0x4015dc
lea edi, [esi + 0x1c]
lea ecx, [esi + 0x20]
call fcn.00402953
mov ecx, edi
call fcn.00402953
mov ecx, ebx
call fcn.0040236f
lea ecx, [esi + 8]
call fcn.00402953
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp fcn.00402953
Function at 0x401a53
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401a81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401a81
xor al, al
jmp 0x401afc
call fcn.004011e0
push eax
lea ecx, [ebp + 8]
call fcn.0040296e
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004025f2
push eax
push ebx
push 0x41ba28
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004025cc
test edi, edi
je 0x401af2
cmp edi, 0x6f
je 0x401af2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401af2
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.004024f6
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00402953
mov al, bl
pop edi
pop ebx
leave
ret 4

Function at 0x401b02
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401b1c
xor al, al
jmp 0x401bd5
push ebx
push esi
call fcn.004011e0
push eax
lea ecx, [ebp - 8]
call fcn.0040296e
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.004025f2
push eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004025cc
test esi, esi
js 0x401bc9
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402589
push 0x41b914
lea ecx, [ebp - 4]
call fcn.00402435
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401b97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401bc1
push str.Temp
lea ecx, [ebp - 4]
call fcn.00402435
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401a53
test al, al
je 0x401bc1
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x20]
call fcn.004024f6
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00402953
lea ecx, [ebp - 8]
call fcn.00402953
pop esi
mov al, bl
pop ebx
pop edi
leave
ret
Function at 0x401c55
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.00405a30
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41ba3c
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401d52
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402589
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.004023a8
lea ecx, [ebp - 0x214]
call fcn.00402953
push 0x41b910
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401d52
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401d52
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401d52
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401d52
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.00401fe4
pop ecx
test eax, eax
jne 0x401d48
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401d52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040570e
leave
ret
Function at 0x401fe4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x41d018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x9c], eax
push edi
mov edi, ecx
cmp esi, 0xd
jae 0x402014
or eax, 0xffffffff
jmp 0x4021a9
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x401fc8
push eax
xor ebx, ebx
mov dword [ebp - 0x90], 0x401fd6
push ecx
mov edx, edi
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
call fcn.004049a1
xor eax, eax
mov dword [ebp - 0x58], ebx
inc eax
mov dword [ebp - 0x34], ebx
add edi, 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
sub esi, 0xd
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [edi]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], esi
call fcn.00413f97
add esp, 0xc
mov dword [ebp - 0x84], ebx
mov edi, eax
lea eax, [ebp - 0x84]
mov edx, edi
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x7c]
add eax, 8
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00404843
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x94]
push dword [ebp - 0x6c]
push eax
call dword [ebp - 0x90]
push dword [ebp - 0x68]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x6c], ebx
push eax
call dword [ebp - 0x90]
add esp, 0x10
mov dword [ebp - 0x68], ebx
test esi, esi
je 0x4020e3
or ebx, 0xffffffff
jmp 0x40219c
mov edx, dword [edi]
lea ecx, [edi + 4]
mov eax, dword [ecx]
push 4
pop esi
add ecx, esi
mov dword [ebp - 0x98], eax
push edx
mov dword [ebp - 0x80], edx
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x88], eax
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x8c], eax
mov ebx, dword [ecx]
add ecx, esi
mov dword [ebp - 0x84], ecx
call fcn.00413f97
mov edx, dword [ebp - 0x88]
mov esi, eax
pop ecx
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x8c]
push esi
push ebx
mov ebx, dword [ebp - 0x98]
lea eax, [ecx + edx]
add eax, ebx
add eax, dword [ebp - 0x84]
push eax
push ecx
mov ecx, dword [ebp - 0x84]
lea eax, [edx + ebx]
add eax, ecx
push eax
push edx
lea eax, [ebx + ecx]
mov edx, ebx
push eax
call fcn.00404a13
add esp, 0x20
xor ebx, ebx
test eax, eax
je 0x402167
inc ebx
jmp 0x402191
push ebx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x80]
push esi
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40218e
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0xa0], eax
je 0x402191
or ebx, 0xffffffff
test esi, esi
je 0x40219c
push esi
call fcn.00413f92
pop ecx
test edi, edi
je 0x4021a7
push edi
call fcn.00413f92
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040570e
leave
ret
Function at 0x402c77
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00402d0f
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x402d07
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x402d00
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x402cf7
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402cf7
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x402d09
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00402d0f
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x402e96
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x402ef4
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402ef4
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x402ef4
cmp dword [edx + ecx], 0x4550
jne 0x402ef4
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x402edf
mov edi, 0x8664
cmp ax, di
je 0x402ef4
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x402ef4
add ecx, 0xc
cmp esi, ecx
jae 0x402ef6
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x402efc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40228
call fcn.00413f60
mov eax, dword [0x41d018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40218]
xor ebx, ebx
mov dword [ebp - 0x40214], 1
push ebx
push eax
mov esi, ecx
lea eax, [ebp - 0x4020c]
push 0x200
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40310f
cmp dword [ebp - 0x40218], 0x200
jne 0x40310f
push 4
lea eax, [ebp - 0x4010b]
push 0x41ba94
push eax
call fcn.00414084
add esp, 0xc
test eax, eax
jne 0x402f7e
inc eax
mov byte [edi], al
jmp 0x403111
push 5
lea eax, [ebp - 0x4010b]
push str.ustar
push eax
call fcn.00414084
add esp, 0xc
test eax, eax
jne 0x40310f
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00402997
add eax, 0x10
lea ecx, [ebp - 0x40210]
push 0x41bac8
mov dword [ebp - 0x40210], eax
call fcn.00403122
lea eax, [ebp - 0x4020c]
push eax
lea ecx, [ebp - 0x40210]
call fcn.00403122
push ebx
push pe_nt_image_headers32
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x40210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40224], eax
cmp eax, 0xffffffff
je 0x403100
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040d6be
add esp, 0xc
mov dword [ebp - 0x40220], eax
push 1
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x40220]
mov edi, ecx
neg edi
add eax, ecx
and edi, 0x1ff
add edi, eax
test ecx, ecx
je 0x4030ad
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x40304f
mov eax, ecx
mov dword [ebp - 0x4021c], ecx
push ebx
lea ecx, [ebp - 0x40218]
push ecx
push eax
lea eax, [ebp - 0x4000c]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4030a7
push ebx
lea eax, [ebp - 0x40218]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030a7
mov ecx, dword [ebp - 0x40220]
sub ecx, dword [ebp - 0x4021c]
mov dword [ebp - 0x40220], ecx
jne 0x403038
jmp 0x4030ad
mov byte [ebp - 0x40214], bl
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x40214], bl
je 0x4030e9
cmp byte [esi + 8], bl
je 0x4030d5
lea eax, [ebp - 0x40210]
push eax
lea ecx, [esi + 0xc]
call fcn.004023a8
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4030e9
push dword [ebp - 0x40210]
push dword [esi + 0x1c]
call eax
pop ecx
pop ecx
cmp edi, 0xffffffff
je 0x4030fa
push ebx
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov bl, byte [ebp - 0x40214]
lea ecx, [ebp - 0x40210]
call fcn.00402953
mov al, bl
jmp 0x403111
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040570e
leave
ret 4
Function at 0x403179
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00402997
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00405a30
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4031da
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402aed
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403205
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x40323b
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403228
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x40322b
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 4]
call fcn.00402953
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x401020
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x4435b8], esi
jne 0x40105c
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x401052
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4435b4], eax
mov dword [0x4435b8], 1
mov eax, dword [0x4435b4]
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401079
push edi
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4010b5
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
test eax, eax
jne 0x4010aa
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov eax, dword [esp + 0x14]
jns 0x40109b
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
jmp 0x4010a0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
call edx
test eax, eax
je 0x4010bd
mov dword [ebp], eax
push edi
push eax
call ebx
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc

Function at 0x4011f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push 0x438668
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401261
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x438664
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401256
cmp dword [esp + 4], eax
jne 0x401256
xor esi, esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x401600
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x401620
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x401634
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x401660
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x401676
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401683
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x4020e0
Capabilities:
Print debug messages

Disassembly:
push edi
xor edi, edi
cmp dword [0x443598], edi
je 0x4020f6
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x443590], edi
je 0x402107
mov eax, 1
pop edi
ret 4
push esi
cmp dword [0x443598], edi
jne 0x402119
call fcn.00401ed0
test eax, eax
je 0x40215b
mov eax, dword [0x4435f0]
mov esi, dword [0x43f028]
test eax, eax
jne 0x402145
push str.ActivateActCtx
push 0x4435bc
push 0x438628
call fcn.00401020
mov dword [0x4435f0], eax
test eax, eax
je 0x40215b
mov ecx, dword [esp + 0xc]
push ecx
push esi
call eax
test eax, eax
je 0x40215b
pop esi
mov eax, 1
pop edi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x402170
cmp eax, 0x7e
je 0x402170
cmp eax, 0x78
jne 0x40217f
mov eax, 1
pop esi
mov dword [0x443590], eax
pop edi
ret 4
pop esi
mov eax, edi
pop edi
ret 4