joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405820
Capabilities:
Clear file content

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x18]
push eax
mov ecx, ebx
call fcn.00402820
mov esi, dword [esp + 0x24]
mov eax, esi
and eax, 1
mov dword [esp + 0x14], SysReAllocStringLen
mov dword [esp + 0x18], eax
je 0x405857
mov dword [esp + 0x14], 0xc0000000
mov eax, esi
and eax, 0xf0
cmp eax, 0x10
je 0x40587e
cmp eax, 0x20
je 0x405877
xor ecx, ecx
cmp eax, 0x30
setne cl
add ecx, 2
mov ebp, ecx
jmp 0x405880
mov ebp, 1
jmp 0x405880
xor ebp, ebp
mov dword [esp + 0x20], 4
test esi, 0x1000
jne 0x405898
mov dword [esp + 0x20], 3
mov esi, dword [ebx]
test esi, esi
je 0x4058b7
mov eax, dword [esi + 8]
test eax, eax
je 0x4058ab
cmp word [eax], 0
jne 0x4058dd
mov eax, dword [esi + 4]
test eax, eax
je 0x4058b7
cmp byte [eax], 0
jne 0x4058be
mov eax, 0x49c3b0
jmp 0x4058e2
cmp dword [esi + 8], 0
jne 0x4058d5
mov edx, dword [esi + 0xc]
add edx, edx
push edx
call fcn.0046b442
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [ebx]
push eax
call fcn.0040c910
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push edx
push 0
push ebp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
jne 0x405918
mov dword [edi + 0x14], 0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp dword [esp + 0x18], 0
je 0x405949
test dword [esp + 0x24], 0x2000
je 0x405942
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push 2
push 0
mov ecx, edi
call eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 8

Function at 0x405990
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4059c3
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4059c3
mov eax, dword [esp]
pop ecx
ret 8
xor eax, eax
pop ecx
ret 8
Function at 0x405a60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48b412
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040ccc0
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x405ac3
push eax
lea ecx, [esp + 0x20]
call fcn.00405f40
add esp, 4
lea ebx, [esp + 0x1c]
call fcn.0040cde0
mov ecx, ebx
mov dword [esp + 0x14], ecx
mov edi, dword [ebp + 8]
mov esi, dword [edi]
test esi, esi
je 0x405ae5
mov eax, dword [esi + 8]
test eax, eax
je 0x405ad9
cmp word [eax], 0
jne 0x405b0b
mov eax, dword [esi + 4]
test eax, eax
je 0x405ae5
cmp byte [eax], 0
jne 0x405aec
mov eax, 0x49c3b0
jmp 0x405b10
cmp dword [esi + 8], 0
jne 0x405b03
mov edx, dword [esi + 0xc]
add edx, edx
push edx
call fcn.0046b442
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [edi]
push eax
call fcn.0040c910
mov ecx, dword [edi]
mov eax, dword [ecx + 8]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edx
push eax
call esi
test eax, eax
setne bl
test bl, bl
jne 0x405bb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405b5f
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.0040cd30
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
mov ecx, edi
call fcn.00403d60
cmp eax, 3
jle 0x405bb8
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00404660
mov byte [esp + 0x38], 1
mov edx, dword [ebp + 0xc]
push edx
push eax
call fcn.00405a60
add esp, 8
mov bl, al
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x18]
call fcn.00402630
test bl, bl
je 0x405bb8
mov eax, dword [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.00402270
add esp, 4
push eax
call esi
test eax, eax
setne bl
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040cd30
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48b96d
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4b185c]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, dword [esp + 0x244]
mov ebp, dword [esp + 0x248]
lea ecx, [esp + 0x18]
xor ebx, ebx
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
call fcn.00405c70
add esp, 4
mov esi, eax
mov dword [esp + 0x23c], 1
mov edi, dword [ebp]
cmp edi, ebx
je 0x405e1b
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x405e10
cmp word [eax], bx
jne 0x405e41
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x405e1b
cmp byte [eax], bl
jne 0x405e22
mov ebp, 0x49c3b0
jmp 0x405e47
cmp dword [edi + 8], ebx
jne 0x405e38
mov edx, dword [edi + 0xc]
add edx, edx
push edx
call fcn.0046b442
add esp, 4
mov dword [edi + 8], eax
mov eax, dword [ebp]
push eax
call fcn.0040c910
mov ecx, dword [ebp]
mov ebp, dword [ecx + 8]
mov edi, dword [esi]
cmp edi, ebx
je 0x405e64
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x405e59
cmp word [eax], bx
jne 0x405e89
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x405e64
cmp byte [eax], bl
jne 0x405e6b
mov eax, 0x49c3b0
jmp 0x405e8e
cmp dword [edi + 8], ebx
jne 0x405e81
mov edx, dword [edi + 0xc]
add edx, edx
push edx
call fcn.0046b442
add esp, 4
mov dword [edi + 8], eax
mov eax, dword [esi]
push eax
call fcn.0040c910
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x24c]
lea edx, [esp + 0x24]
push edx
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [esp + 0x23c], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x405ef4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x405ef0
mov eax, dword [esp + 0x18]
mov edi, eax
cmp eax, ebx
je 0x405ef0
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x405ed7
push eax
call fcn.0046b365
add esp, 4
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x405ee7
push eax
call fcn.0046b365
add esp, 4
push edi
call fcn.004553b4
add esp, 4
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
call fcn.004023d0
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x20], 1
mov eax, esi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0046a0d3
add esp, 0x22c
ret
Function at 0x4060c0
Capabilities:
Set file attributes

Disassembly:
push ecx
push ebx
mov ebx, eax
push esi
test ebx, ebx
jne 0x4060ce
mov ebx, 0x80
mov esi, dword [edi]
test esi, esi
je 0x4060ed
mov eax, dword [esi + 8]
test eax, eax
je 0x4060e1
cmp word [eax], 0
jne 0x406122
mov eax, dword [esi + 4]
test eax, eax
je 0x4060ed
cmp byte [eax], 0
jne 0x406103
mov eax, 0x49c3b0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop esi
pop ebx
pop ecx
ret
cmp dword [esi + 8], 0
jne 0x40611a
mov eax, dword [esi + 0xc]
add eax, eax
push eax
call fcn.0046b442
add esp, 4
mov dword [esi + 8], eax
mov ecx, dword [edi]
push ecx
call fcn.0040c910
mov edx, dword [edi]
mov eax, dword [edx + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
pop esi
setne al
pop ebx
pop ecx
ret

Function at 0x406140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48b048
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea eax, [esp + 4]
push eax
call fcn.0040b270
mov dword [esp + 0x28], 0
mov dword [esp + 4], vtable.OFile.0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 2
mov ecx, dword [esp + 0x30]
push 0
push ecx
lea ecx, [esp + 0xc]
call fcn.00405820
test al, al
je 0x4061e0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
push edx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 4]
call fcn.004056d0
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 4]
call fcn.004056d0
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret

Function at 0x406210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48b048
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea eax, [esp + 4]
push eax
call fcn.0040b270
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 4], vtable.OFile.0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 2
mov ecx, dword [esp + 0x30]
push 0x2001
push ecx
lea ecx, [esp + 0xc]
call fcn.00405820
test al, al
je 0x40628c
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 4]
call fcn.004056d0
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret
Function at 0x4062b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48b010
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00405650
mov dword [esp + 0x44], ebx
cmp dword [esp + 0x34], ebx
je 0x406405
xor edi, edi
mov dword [esp + 0x18], edi
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x406385
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, ebx
jbe 0x406385
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x34]
dec ebp
cmp ecx, ebx
je 0x406342
push ebx
lea edx, [esp + 0x20]
push edx
push 1
lea eax, [esp + 0x23]
push eax
push ecx
mov dword [esp + 0x30], ebx
call edi
mov al, byte [esp + 0x17]
cmp al, bl
je 0x40637d
cmp al, 0xa
je 0x40635d
cmp al, 0xd
je 0x40637d
mov bl, al
lea esi, [esp + 0x18]
call fcn.00402d10
xor ebx, ebx
jmp 0x406379
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x54]
call fcn.004085a0
push 0x49bf34
lea ecx, [esp + 0x1c]
call fcn.00402890
mov al, byte [esp + 0x17]
cmp ebp, ebx
ja 0x406321
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
call fcn.00402780
test eax, eax
jle 0x40639e
mov ecx, dword [esp + 0x50]
mov edx, esi
push edx
call fcn.004085a0
mov byte [esp + 0x44], bl
cmp edi, ebx
je 0x4063de
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4063da
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4063c1
push eax
call fcn.0046b365
add esp, 4
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x4063d1
push eax
call fcn.0046b365
add esp, 4
push edi
call fcn.004553b4
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004056d0
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004056d0
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret

Function at 0x4068c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48ad42
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4b185c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
push 0x104
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x10]
push ecx
call fcn.004023d0
mov dword [esp + 0x224], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046a0d3
add esp, 0x220
ret
Function at 0x406960
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48ad42
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4b185c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
push 0x104
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x10]
push ecx
call fcn.004023d0
mov dword [esp + 0x224], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046a0d3
add esp, 0x220
ret

Function at 0x406a00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48ad42
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4b185c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov esi, ecx
push 0x104
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x10]
push ecx
call fcn.004023d0
mov dword [esp + 0x224], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046a0d3
add esp, 0x220
ret

Function at 0x406b30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0046ac10
mov edi, dword [ebp + 8]
mov esi, dword [edi]
or dword [esp + 0x50], 1
mov cx, word [ebp + 0xc]
add esp, 0xc
mov dword [esp + 0x18], 0x44
mov word [esp + 0x48], cx
test esi, esi
je 0x406b84
mov eax, dword [esi + 8]
test eax, eax
je 0x406b78
cmp word [eax], 0
jne 0x406baa
mov eax, dword [esi + 4]
test eax, eax
je 0x406b84
cmp byte [eax], 0
jne 0x406b8b
mov eax, 0x49c3b0
jmp 0x406baf
cmp dword [esi + 8], 0
jne 0x406ba2
mov edx, dword [esi + 0xc]
add edx, edx
push edx
call fcn.0046b442
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [edi]
push eax
call fcn.0040c910
mov ecx, dword [edi]
mov eax, dword [ecx + 8]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406bee
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406ea0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48ad42
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4b185c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
lea eax, [esp + 0x10]
push eax
push 0x104
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x10]
push ecx
call fcn.004023d0
mov dword [esp + 0x224], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046a0d3
add esp, 0x220
ret 4

Function at 0x406f50
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, dword [edi]
test esi, esi
je 0x406f70
mov eax, dword [esi + 8]
test eax, eax
je 0x406f64
cmp word [eax], 0
jne 0x406fa2
mov eax, dword [esi + 4]
test eax, eax
je 0x406f70
cmp byte [eax], 0
jne 0x406f83
mov eax, 0x49c3b0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
pop esi
ret
cmp dword [esi + 8], 0
jne 0x406f9a
mov eax, dword [esi + 0xc]
add eax, eax
push eax
call fcn.0046b442
add esp, 4
mov dword [esi + 8], eax
mov ecx, dword [edi]
push ecx
call fcn.0040c910
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
pop esi
ret

Function at 0x407a80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48a5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor edx, edx
push 0
lea ecx, [edx + 0xe]
lea esi, [esp + 0x10]
call fcn.0040ce70
mov dword [esp + 0x38], 0
mov edx, dword [edi]
push eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], vtable.OException.0
test eax, eax
je 0x407af0
push eax
call fcn.0046b365
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x407b01
push eax
call fcn.0046b365
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407b12
push eax
call fcn.0046b365
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407b23
push eax
call fcn.0046b365
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48a5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push 0
mov ecx, 0x54f
lea esi, [esp + 0x10]
call fcn.0040ce70
mov dword [esp + 0x38], 0
mov edx, dword [edi]
push eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], vtable.OException.0
test eax, eax
je 0x407bb5
push eax
call fcn.0046b365
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x407bc6
push eax
call fcn.0046b365
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407bd7
push eax
call fcn.0046b365
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407be8
push eax
call fcn.0046b365
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40afc0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [edi]
test esi, esi
je 0x40afe0
mov eax, dword [esi + 8]
test eax, eax
je 0x40afd4
cmp word [eax], 0
jne 0x40b006
mov eax, dword [esi + 4]
test eax, eax
je 0x40afe0
cmp byte [eax], 0
jne 0x40afe7
mov eax, 0x49c3b0
jmp 0x40b00b
cmp dword [esi + 8], 0
jne 0x40affe
mov eax, dword [esi + 0xc]
add eax, eax
push eax
call fcn.0046b442
add esp, 4
mov dword [esi + 8], eax
mov ecx, dword [edi]
push ecx
call fcn.0040c910
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push ecx
push 3
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
je 0x40b02c
or eax, 0xffffffff
ret 8
mov eax, ebx
ret 8

Function at 0x40b040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [edi]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
test esi, esi
je 0x40b06f
mov eax, dword [esi + 8]
test eax, eax
je 0x40b063
cmp word [eax], 0
jne 0x40b095
mov eax, dword [esi + 4]
test eax, eax
je 0x40b06f
cmp byte [eax], 0
jne 0x40b076
mov eax, 0x49c3b0
jmp 0x40b09a
cmp dword [esi + 8], 0
jne 0x40b08d
mov ecx, dword [esi + 0xc]
add ecx, ecx
push ecx
call fcn.0046b442
add esp, 4
mov dword [esi + 8], eax
mov edx, dword [edi]
push edx
call fcn.0040c910
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40b0c5
or eax, 0xffffffff
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8
Function at 0x40b0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
test edi, edi
je 0x40b0e0
mov dword [edi], 0
test ebx, ebx
je 0x40b0ea
mov dword [ebx], 0
mov esi, dword [ebp]
test esi, esi
je 0x40b10a
mov eax, dword [esi + 8]
test eax, eax
je 0x40b0fe
cmp word [eax], 0
jne 0x40b131
mov eax, dword [esi + 4]
test eax, eax
je 0x40b10a
cmp byte [eax], 0
jne 0x40b111
mov eax, 0x49c3b0
jmp 0x40b137
cmp dword [esi + 8], 0
jne 0x40b128
mov eax, dword [esi + 0xc]
add eax, eax
push eax
call fcn.0046b442
add esp, 4
mov dword [esi + 8], eax
mov ecx, dword [ebp]
push ecx
call fcn.0040c910
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push edi
push 0
push ebx
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop esi
sete al
pop ebp
ret 8
Function at 0x40c290
Capabilities:
Access the windows event log

Disassembly:
push ebx
push ebp
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 4]
lea ebp, [edi + 0x10]
mov ecx, ebp
xor bl, bl
call edx
mov ecx, edi
call fcn.0040c050
test al, al
je 0x40c333
cmp dword [edi + 8], 1
mov ebx, dword [esp + 0x10]
push esi
jne 0x40c2e1
cmp ebx, 4
jne 0x40c2ca
mov esi, 0x40000100
jmp 0x40c302
mov esi, ebx
sub esi, 2
neg esi
sbb esi, esi
and esi, 0x40000100
add esi, 0x80000200
jmp 0x40c302
cmp ebx, 4
jne 0x40c2ed
mov esi, 0x40ff0400
jmp 0x40c302
mov esi, ebx
sub esi, 2
neg esi
sbb esi, esi
and esi, 0x40000100
add esi, 0x80ff0500
mov ecx, dword [esp + 0x18]
call fcn.00402270
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 4]
push 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0
push 1
push 0
push esi
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
setne bl
pop esi
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
pop edi
pop ebp
mov al, bl
pop ebx
ret 0xc

Function at 0x40c4f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48acff
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
xor edi, edi
mov dword [esi], eax
cmp eax, edi
je 0x40c52b
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x14], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov byte [esp + 0x14], 1
mov dword [esi + 0xc], vtable.OStringArray.0
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov byte [esp + 0x14], 2
mov dword [esi + 0x28], edi
mov byte [esp + 0x14], 3
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov byte [esp + 0x14], 4
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8