joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4609f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f0b1a
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, edi
call fcn.004617b0
mov esi, eax
test edi, edi
jne 0x460a34
call fcn.004c6ae5
mov ebx, dword [edi]
mov edi, dword [edi + 0x18]
test ebx, ebx
je 0x460a41
cmp ebx, ebx
je 0x460a46
call fcn.004c6ae5
cmp esi, edi
je 0x460ad8
cmp dword [esi + 0x24], 8
mov edx, dword [esi + 0x20]
jb 0x460a60
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x460a67
lea ecx, [esi + 0x10]
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x14]
mov ecx, edi
mov dword [esp + 0x14], edi
cmp ecx, edi
jae 0x460a7b
mov dword [esp + 0x14], ecx
cmp edi, edx
jae 0x460a81
mov edx, edi
cmp dword [eax + 0x18], 8
jb 0x460a8c
mov ecx, dword [eax + 4]
jmp 0x460a8f
lea ecx, [eax + 4]
mov eax, dword [esp + 0x1c]
test edx, edx
jbe 0x460ac0
mov di, word [ecx]
cmp di, word [eax]
jne 0x460aac
add ecx, 2
add eax, 2
sub edx, 1
jne 0x460a97
jmp 0x460abc
mov dx, word [ecx]
cmp dx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
jne 0x460ad0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x20]
cmp edi, eax
jb 0x460ad8
xor ecx, ecx
cmp edi, eax
setne cl
mov eax, ecx
test eax, eax
jge 0x460bba
lea edx, [esp + 0x20]
push edx
call fcn.004611d0
xor edi, edi
mov dword [esp + 0x78], edi
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00461260
mov byte [esp + 0x78], 1
mov edx, dword [ebp + 8]
push esi
push ebx
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00460d60
mov ebx, dword [eax]
mov esi, dword [eax + 4]
mov byte [esp + 0x78], 2
lea eax, [esp + 0x54]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x78], 4
mov eax, dword [esp + 0x60]
cmp eax, edi
je 0x460b34
push eax
call fcn.004c6252
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov byte [esp + 0x78], 2
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004c6252
add esp, 4
mov byte [esp + 0x78], 0
cmp dword [esp + 0x50], 8
jb 0x460b6b
mov edx, dword [esp + 0x3c]
push edx
call fcn.004c6252
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], ax
mov dword [esp + 0x78], 6
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x460b97
push eax
call fcn.004c6252
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x78], 0xffffffff
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004c6252
add esp, 4
jmp 0x460bbc
xor edi, edi
cmp ebx, edi
jne 0x460be9
call fcn.004c6ae5
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x460bd1
call fcn.004c6ae5
lea eax, [esi + 0x28]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
jmp 0x460bc7
Function at 0x463960
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4f7b3b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 8
call fcn.004c65a8
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
test eax, eax
je 0x4639ae
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov esi, eax
jmp 0x4639b0
xor esi, esi
mov dword [esp + 0x18], 0xffffffff
push 0
push 0
push esi
push 0x4639f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4639db
push esi
call fcn.004c6252
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x464760
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
lea ecx, [esp]
push ecx
push 0x464790
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret

Function at 0x4647d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ebc44
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.004670e0
mov dword [esp + 0x14], 0
lea eax, [esi + 0x18]
push eax
call fcn.004670e0
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x30]
push ecx
call fcn.004670e0
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4648f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4f41e3
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x541770]
xor eax, esp
mov dword [esp + 0x470], eax
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
push 1
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov esi, ecx
mov dword [esp + 0x14], 0x2a
call fcn.0040ece2
cmp eax, 0xffffffff
jne 0x46496a
cmp dword [esi + 0x18], 8
jb 0x46495b
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x464a6e
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x464a6e
lea ecx, [esp + 0x14]
push ecx
call fcn.00464aa0
mov dword [esp + 0x488], 0
cmp dword [esi + 0x18], 8
jb 0x46498a
mov esi, dword [esi + 4]
jmp 0x46498d
add esi, 4
push esi
lea edx, [esp + 0x18]
push edx
call fcn.0046e960
test eax, eax
je 0x464a59
mov eax, dword [esp + 0x474]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4649e7
mov ecx, dword [esp + 0x14]
shr ecx, 4
and ecx, 1
je 0x4649e3
cmp word [esp + 0x40], 0x2e
jne 0x4649e3
mov dx, word [esp + 0x42]
test dx, dx
je 0x464a33
cmp dx, 0x2e
jne 0x4649e3
cmp word [esp + 0x44], 0
je 0x464a33
test ecx, ecx
jne 0x464a33
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.0046ee80
mov byte [esp + 0x488], 1
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov byte [esp + 0x488], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x464a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x474]
mov ecx, dword [esp + 0x470]
test ecx, ecx
je 0x464a59
test eax, eax
je 0x464a59
lea edx, [esp + 0x14]
push edx
push ecx
call edi
mov dword [esp + 0x474], eax
test eax, eax
jne 0x4649b7
mov dword [esp + 0x488], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00464b30
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004c625d
add esp, 0x480
ret
Function at 0x464d00
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4f4198
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x28]
add ebx, 0x18
mov dword [esp + 0x14], ebx
cmp dword [ebx + 0xc], esi
jbe 0x464d3d
call fcn.004c6ae5
mov edi, dword [ebx]
mov ebp, esi
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x18], esi
cmp esi, dword [ebx + 0x10]
jbe 0x464d52
call fcn.004c6ae5
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x464d62
cmp edi, dword [esp + 0x1c]
je 0x464d67
call fcn.004c6ae5
cmp ebp, esi
je 0x464e2e
mov esi, edi
mov dword [esp + 0x28], ebp
test edi, edi
jne 0x464dc2
call fcn.004c6ae5
xor eax, eax
cmp ebp, dword [eax + 0xc]
ja 0x464d8a
call fcn.004c6ae5
lea ebx, [ebp - 0x1c]
test esi, esi
jne 0x464dc6
call fcn.004c6ae5
cmp ebx, dword [esi + 0x10]
jb 0x464da0
call fcn.004c6ae5
lea esi, [esp + 0x2c]
mov ecx, ebx
call fcn.0045ddf0
mov dword [esp + 0x50], 0
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x464dca
mov eax, dword [eax + 4]
jmp 0x464dcd
mov eax, dword [edi]
jmp 0x464d80
mov esi, dword [esi]
jmp 0x464d96
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x44], esi
jb 0x464def
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004c6252
add esp, 4
xor edx, edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], dx
test edi, edi
jne 0x464e2a
call fcn.004c6ae5
xor eax, eax
cmp ebp, dword [eax + 0xc]
ja 0x464e1b
call fcn.004c6ae5
mov esi, dword [esp + 0x18]
mov ebp, ebx
mov ebx, dword [esp + 0x14]
jmp 0x464d58
mov eax, dword [edi]
jmp 0x464e11
mov ebx, dword [ebx + 0x10]
mov ebp, dword [esp + 0x14]
cmp dword [ebp + 0xc], ebx
jbe 0x464e3f
call fcn.004c6ae5
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp]
cmp esi, dword [ebp + 0x10]
jbe 0x464e4f
call fcn.004c6ae5
mov eax, dword [ebp]
push ebx
push edi
push esi
push eax
lea eax, [esp + 0x34]
push eax
mov esi, ebp
call fcn.004653c0
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x466930
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x541770]
xor eax, esp
mov dword [esp + 0x2bc], eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4011
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0x10
push 0x50fb1c
call edi
push 0x4011
push 0x2b4
lea ecx, [esp + 0x14]
push ecx
push 0x10
push str.C:FAKE_DIR_
mov dword [esi], eax
call edi
mov edx, dword [esp + 0x10]
push 0x4013
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0x10
push str.C:FAKE_DIR_
mov dword [esi + 4], edx
call edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
push 0x11
push 0
mov dword [esi + 8], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x466a0d
mov ecx, dword [esp + 4]
push 0x4009
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call edi
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov dword [esi + 0xc], edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x466a14
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, esi
pop edi
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.004c625d
add esp, 0x2c0
ret
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0x2c0]
pop edi
xor ecx, esp
mov eax, esi
call fcn.004c625d
add esp, 0x2c0
ret

Function at 0x466ab0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x4e9b60
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x541770]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov dword [esp + 0x2c8], 0
mov edx, dword [esp + 0x2d0]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x466b26
mov eax, 0x104
lea ecx, [esp + 0x2d0]
call fcn.004035ef
mov edx, dword [esp + 0x2d0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [esp + 0x2d0]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004c6e65
add esp, 8
test eax, eax
jl 0x466be3
mov ecx, dword [esp + 0x2d0]
cmp eax, dword [ecx - 8]
jg 0x466be3
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x2d0]
push 0x4013
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [esp + 0x2d4]
push 0x2b4
lea eax, [esp + 0x10]
push eax
push 0x10
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x2c8], 0xffffffff
mov eax, dword [esp + 0x2d0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x466bba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.004c625d
add esp, 0x2c4
ret 4
push 0x80070057
call fcn.00403765
int3
Function at 0x468290
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
mov ebx, ecx
call fcn.004685c0
mov eax, 8
cmp dword [edi + 0x18], eax
jb 0x4682ad
mov edi, dword [edi + 4]
jmp 0x4682b0
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x4682ba
mov ebx, dword [ebx + 4]
jmp 0x4682bd
add ebx, 4
test edi, edi
jne 0x4682d3
mov eax, 0xd
xor edx, edx
test eax, eax
pop edi
sete dl
pop esi
mov al, dl
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
test eax, eax
pop edi
sete dl
pop esi
mov al, dl
pop ebx
ret

Function at 0x468830
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4f4078
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x541770]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push 0x104
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x46889f
mov edx, dword [0x5442cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5442cc
call eax
add eax, 0x10
mov dword [esi], eax
jmp 0x46891a
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x4688b2
mov ecx, 0x5c
mov word [esp + eax*2 + 0x10], cx
inc eax
xor edx, edx
mov word [esp + eax*2 + 0x10], dx
mov eax, dword [0x5442cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5442cc
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x224], 2
lea eax, [esp + 0x10]
test eax, 0xffff0000
jne 0x468900
mov ecx, eax
movzx edi, cx
push edi
call fcn.00405a89
add esp, 4
test eax, eax
je 0x46891a
push edi
push eax
mov eax, esi
call fcn.00405bd7
jmp 0x46891a
lea edx, [esp + 0x10]
push edx
call fcn.004c6f29
add esp, 4
push eax
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.00405ca6
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 edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004c625d
add esp, 0x220
ret
Function at 0x468960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f0941
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ebx, 1
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x1c]
push eax
call fcn.00469bd0
mov edx, dword [0x5442cc]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x5442cc
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x30], bl
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
cmp ebx, esi
jle 0x468a62
mov ebp, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x468a32
lea ecx, [eax - 1]
test ecx, ecx
jl 0x468ae3
cmp ecx, eax
jg 0x468ae3
movzx ecx, word [edx + ecx*2]
cmp cx, 0x5d
je 0x468a32
test eax, eax
jle 0x468a32
lea ecx, [eax - 1]
test ecx, ecx
jl 0x468ae3
cmp ecx, eax
jg 0x468ae3
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x468a32
push 0x5c
call fcn.004668b0
test esi, esi
jl 0x468aed
cmp esi, ebx
jge 0x468aed
mov eax, ebp
call fcn.0046ab20
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, edi
call fcn.00403bf6
inc esi
add ebp, 4
cmp esi, ebx
jl 0x4689e4
xor esi, esi
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x468ac5
cmp ebx, esi
jle 0x468ab8
mov esi, eax
mov ebp, ebx
jmp 0x468a80
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 0
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468aaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
sub ebp, 1
jne 0x468a80
mov eax, dword [esp + 0x1c]
xor esi, esi
push eax
call fcn.004c6403
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00403765
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x4693c0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x541770]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
lea eax, [esp + 0x20c]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x469406
xor al, al
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004c625d
add esp, 0x414
ret
mov esi, dword [esi]
lea ecx, [esp + 4]
push ecx
push 0
push esi
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4693ee
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
push ecx
call fcn.004c6f29
add esp, 4
push eax
lea edx, [esp + 8]
push edx
mov eax, edi
call fcn.00405ca6
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov al, 1
call fcn.004c625d
add esp, 0x414
ret
Function at 0x46a2f0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4e5b78
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
cmp esi, 0xffffffff
jne 0x46a36a
mov dword [esp + 0x1c], eax
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], edi
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x46a39e
mov dword [esp + 0x1c], eax
cmp esi, edi
je 0x46a38a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], edi
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp + 0x1c], 0xffffffff
cmp esi, edi
je 0x46a3bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], edi
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x46a3d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e9a50
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0046a460
add esp, 4
mov dword [esp + 0x14], 0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a43e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret
Function at 0x46ab70
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x46ab9b
call fcn.00405c64
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, edi
or ecx, edx
jge 0x46abba
mov eax, edi
mov ecx, esi
call fcn.004035ef
mov eax, dword [esi]
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46abdc
push ecx
push eax
call fcn.004c6e65
add esp, 8
test eax, eax
jl 0x46abfc
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x46abfc
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
pop edi
pop esi
xor edx, edx
mov ebx, 1
mov word [ecx + eax*2], dx
pop ebp
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00403765
int3
Function at 0x46fe50
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push edi
call fcn.0041fb4f
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x24]
push 0x1f6
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x46fec2
mov eax, dword [edi + 0x14]
mov ecx, edi
cmp esi, eax
ja 0x46fe90
push 0xffffffffffffffff
push esi
call fcn.0040144f
jmp 0x46fe9c
mov edx, esi
push 0
sub edx, eax
push edx
call fcn.00401110
cmp dword [edi + 0x18], 8
jb 0x46feb5
mov edi, dword [edi + 4]
inc esi
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
pop ebx
ret 4
inc esi
push esi
add edi, 4
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
pop ebx
ret 4

Function at 0x4704d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ed776
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x541770]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
xor edx, edx
call fcn.00466eb0
add esp, 8
xor ebx, ebx
mov dword [esp + 0x15c], ebx
cmp dword [esp + 0x40], ebx
jne 0x4705dc
push 0x103
lea ecx, [esp + 0x4d]
push ebx
push ecx
mov byte [esp + 0x54], bl
call fcn.004c6270
add esp, 0xc
push 0x104
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x48]
push eax
call fcn.004c64a0
add esp, 4
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401bea
lea edx, [esp + 0xc]
push edx
lea edi, [esp + 0x30]
mov byte [esp + 0x10], 0x5c
call fcn.00470c80
cmp eax, 0xffffffff
je 0x4705dc
push eax
lea eax, [esp + 0x14]
push eax
xor ecx, ecx
mov edx, edi
call fcn.00470c10
mov byte [esp + 0x15c], 1
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.004018a7
mov byte [esp + 0x15c], bl
cmp dword [esp + 0x28], 0x10
jb 0x4705cc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004c6252
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x4705eb
lea eax, [esp + 0x30]
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.dbghelp.dll_SymSetSearchPath]
cmp eax, 1
sete byte [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x47061c
mov eax, dword [esp + 0x30]
push eax
call fcn.004c6252
add esp, 4
mov al, byte [esp + 0xc]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.004c625d
add esp, 0x154
ret 4