joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45862b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x51181f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0x20c]
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
or eax, 0x2001f
push eax
push ecx
push dword [ebx]
lea ecx, [ebp - 0x18]
call fcn.00441aac
jmp 0x45869e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.0045862b
mov esi, eax
test esi, esi
jne 0x4586e8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x458692
cmp dword [ebp - 0x18], esi
je 0x4586d9
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x20]
mov ecx, ebx
mov dword [ebp - 0x14], esi
call fcn.004587ad
mov esi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x4586ff
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.004da8b4
add ebp, 0x204
leave
ret 4
Function at 0x4590e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x5118a7
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
push 0x60
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x459184
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x459184
call fcn.0040c237
mov edi, eax
jmp 0x45926d
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4591a1
call fcn.0040c237
jmp 0x459260
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x459197
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x18], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4591ce
mov edi, 0x8007000e
jmp 0x459262
push 2
pop ecx
mov byte [ebp - 4], cl
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp edx, ebx
ja 0x4592ab
jb 0x4591ef
cmp eax, 0xffffffff
ja 0x4592ab
cmp eax, 0x400
jbe 0x459201
push eax
lea ecx, [ebp]
call fcn.0045184f
jmp 0x459207
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x459225
cmp dword [ebp], 0
je 0x4591c4
push edi
push dword [ebp]
push edi
push dword [ebp - 0x14]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x459197
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.00458f9d
mov edi, eax
test esi, esi
je 0x45926d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x459280
lea ecx, [ebp]
call fcn.00451846
or dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004da8b4
add ebp, 0x408
leave
ret 0x10
push 0x80070216
call fcn.0040d86a
int3
Function at 0x46e7c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5068e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x46e870
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0046d460
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0046e940
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46e850
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46e846
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e934
push edx
push ecx
call fcn.004da8c5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
add esi, 0x18
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, edi
jne 0x46e7f6
mov edi, dword [ebx + 4]
mov esi, dword [ebx]
push edi
push esi
call fcn.0046efe0
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x46e900
lea eax, [ebp - 0x28]
lea ecx, [esi - 0x18]
push eax
call fcn.0046d460
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x46e8a1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46e8e5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46e8db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e934
push edx
push ecx
call fcn.004da8c5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
add esi, 0xffffffe8
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, edi
jne 0x46e886
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.0046efe0
mov eax, dword [ebx + 0xc]
mov ecx, ebx
mov dword [ebx + 0x10], eax
call fcn.0046ec50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004da8b4
mov esp, ebp
pop ebp
ret
call fcn.004e0966
int3
Function at 0x46e940
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514211
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x14]
mov edx, esi
cmp edi, 8
jb 0x46e97c
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x46e993
mov eax, edx
cmp word [eax], 0x2a
je 0x46e9bd
add eax, 2
sub ecx, 1
jne 0x46e985
cmp edi, 8
jb 0x46e99a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004da8b4
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x46e993
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x46e993
lea ecx, [ebp - 0x478]
call fcn.0046eae0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x46e9e4
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x478]
call fcn.00483560
test eax, eax
je 0x46eabb
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x18], 0
je 0x46ea44
mov eax, dword [ebp - 0x478]
shr eax, 4
and eax, 1
cmp word [ebp - 0x44c], 0x2e
jne 0x46ea40
test eax, eax
je 0x46ea44
mov cx, word [ebp - 0x44a]
test cx, cx
je 0x46ea99
cmp cx, 0x2e
jne 0x46ea40
cmp word [ebp - 0x448], 0
je 0x46ea99
test eax, eax
jne 0x46ea99
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x478]
call fcn.004839a0
mov byte [ebp - 4], 1
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46ea99
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x534850
jne 0x46ead2
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46eabb
cmp dword [ebp - 0x18], 0
je 0x46eabb
lea ecx, [ebp - 0x478]
push ecx
push eax
call ebx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x46ea04
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.0046eb90
jmp 0x46e9a1
mov ecx, edx
call esi
jmp 0x46ea99

Function at 0x46fac0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x46faef
cmp dword [edi + 0x20], 8
lea ecx, [edi + 0xc]
jb 0x46fad5
mov ecx, dword [ecx]
mov eax, dword [edi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [edi + 0x3c]
mov ecx, edi
call fcn.004580a7
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x46fafb
mov esi, dword [esi]
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
jb 0x46fb07
mov ebx, dword [ebx]
test esi, esi
jne 0x46fb1b
mov eax, 0xd
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 0xc
push esi
call fcn.004e09b6
add esp, 4
lea eax, [eax*2 + 2]
push eax
push esi
push 2
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 0xc
Function at 0x46fe50
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi]
test edx, edx
jne 0x46fe80
cmp dword [esi + 0x20], 8
lea ecx, [esi + 0xc]
jb 0x46fe64
mov ecx, dword [ecx]
mov eax, dword [esi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [esi + 0x3c]
mov ecx, esi
call fcn.004580a7
mov edx, dword [esi]
mov ecx, dword [esp + 8]
pop esi
cmp dword [ecx + 0x14], 8
jb 0x46fe8d
mov ecx, dword [ecx]
mov eax, dword [esp + 8]
push 4
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
ret 8
Function at 0x475c20
Capabilities:
Enumerate gui resources

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

Function at 0x476f40
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x2b8
push 0xffffffffffffffff
push 0x51500f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x57f44c]
test eax, eax
jne 0x47707e
push 0x10
call fcn.004da8d3
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x2b4
push 0
push eax
call fcn.004de710
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp]
add esp, 0x10
push 0x4011
push 0x2b4
push eax
push 0x10
push 0x5407a8
call edi
push 0x4011
push 0x2b4
mov dword [esi], eax
lea eax, [ebp]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [ebp + 4]
push 0x4013
push 0x2b4
mov dword [esi + 4], eax
lea eax, [ebp]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [ebp + 4]
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x47704d
push 0x4009
push 0x2b4
lea eax, [ebp]
push eax
push 0
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp + 4]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x477054
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x477054
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x57f44c]
mov dword [0x57f44c], esi
test eax, eax
je 0x47707c
push 0x10
push eax
call fcn.004da8c5
mov eax, dword [0x57f44c]
add esp, 8
jmp 0x47707e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.004da8b4
lea esp, [ebp + 0x2b8]
pop ebp
ret
Function at 0x4770a0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515050
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x4770fc
push 0x104
lea ecx, [ebp + 8]
call fcn.0040d70c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.004e3697
mov edx, eax
add esp, 8
test edx, edx
js 0x4771c1
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x4771c1
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
push 0x2b4
push ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x2c4]
push eax
call fcn.004de710
add esp, 0xc
lea eax, [ebp - 0x2c4]
push 0x4013
push 0x2b4
push eax
push 0x10
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, dword [ebp - 0x2c0]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4771a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x534850
jne 0x4771cb
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004da8b4
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0040d86a
call esi
jmp 0x4771a2
Function at 0x479910
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515568
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x57c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.0040d33d
mov ecx, eax
test ecx, ecx
je 0x479a5c
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x534850
jne 0x479a66
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.00479a80
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
test al, al
jne 0x479987
xor bl, bl
jmp 0x479a03
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebx]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x4799fe
cmp dword [edi + 0xc], 0
jl 0x4799f3
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4799f3
call fcn.004070e1
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4799e9
mov edx, dword [edi]
push edi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x534850
jne 0x479a6d
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x4799fe
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x4799fe
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.0040d8ae
mov bl, 1
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x479a48
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x534850
jne 0x479a76
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040d86a
call edx
jmp 0x479962
mov ecx, edx
call eax
jmp 0x4799e9
call edx
jmp 0x479a48
Function at 0x479a80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
lea eax, [esp + 0x214]
mov ebx, edx
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x479c37
lea eax, [esp + 0xc]
push eax
push 0
push dword [esi]
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x479c37
push ebp
lea eax, [esp + 0x10]
push edi
push eax
call fcn.004e09b6
mov esi, dword [ebx]
mov edi, eax
add esp, 4
test edi, edi
jne 0x479b72
lea ecx, [esi - 0x10]
mov edi, dword [ecx]
cmp dword [ecx + 4], eax
je 0x479c1c
cmp dword [ecx + 0xc], eax
lea edx, [ecx + 0xc]
jge 0x479b1d
cmp dword [esi - 8], eax
jl 0x479c63
mov dword [esi - 0xc], eax
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax], cx
jmp 0x479c1c
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x479b4a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x534850
jne 0x479c50
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi]
cmp eax, 0x534850
jne 0x479c59
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
add eax, 0x10
mov dword [ebx], eax
jmp 0x479c1c
add eax, 0x10
mov dword [ebx], eax
jmp 0x479c1c
mov eax, dword [esi - 0xc]
lea ebp, [esp + 0x14]
sub ebp, esi
mov dword [esp + 0x10], eax
sar ebp, 1
test edi, edi
js 0x479c63
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x479ba4
push edi
mov ecx, ebx
call fcn.0040d70c
mov esi, dword [ebx]
lea ecx, [edi + edi]
cmp ebp, dword [esp + 0x10]
ja 0x479bf2
mov eax, dword [esi - 8]
lea edx, [esi + ebp*2]
test ecx, ecx
je 0x479c0a
test edx, edx
jne 0x479bcd
call fcn.004e0af4
mov dword [eax], 0x16
call fcn.004e0956
jmp 0x479c07
add eax, eax
cmp eax, ecx
jae 0x479be5
call fcn.004e0af4
mov dword [eax], 0x22
call fcn.004e0956
jmp 0x479c07
push ecx
push edx
push esi
call fcn.004dc550
add esp, 0xc
jmp 0x479c07
mov edx, dword [esi - 8]
lea eax, [esp + 0x14]
push ecx
push eax
add edx, edx
mov ecx, esi
call fcn.0040d7e5
add esp, 8
lea ecx, [edi + edi]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x479c63
mov dword [eax - 0xc], edi
xor edx, edx
mov eax, dword [ebx]
mov word [ecx + eax], dx
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004da8b4
add esp, 0x418
ret
mov ecx, dword [esp + 0x41c]
xor al, al
pop esi
pop ebx
xor ecx, esp
call fcn.004da8b4
add esp, 0x418
ret
mov ecx, edx
call esi
jmp 0x479b4a
mov ecx, edi
call dword [eax + 0xc]
jmp 0x479b68
push 0x80070057
call fcn.0040d86a
int3
Function at 0x47afa0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5157c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x57c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x533e68
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x47b002
or esi, eax
xor bl, bl
jmp 0x47b018
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47b014
xor bl, bl
jmp 0x47b018
mov dword [edi], eax
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x533e68
test esi, esi
je 0x47b038
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47b050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515800
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x57c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea ecx, [ebp - 0x10]
call fcn.0047b100
mov dword [ebp - 4], 0
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47b0df
mov edx, dword [esi]
push esi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x534850
jne 0x47b0f2
mov ecx, dword [edx + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call eax
jmp 0x47b0df
Function at 0x47b9d0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0
push 0
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x47ba7f
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0x10]
mov edi, dword [ecx]
je 0x47ba1c
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x47ba24
cmp dword [eax - 8], 0
jl 0x47bade
mov dword [eax - 0xc], 0
xor ecx, ecx
mov eax, dword [esi]
mov word [eax], cx
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x47ba51
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, 0x534850
jne 0x47bae8
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi]
cmp eax, 0x534850
jne 0x47baf1
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
add eax, 0x10
pop edi
mov dword [esi], eax
xor eax, eax
pop esi
pop ebx
ret 4
add eax, 0x10
pop edi
mov dword [esi], eax
xor eax, eax
pop esi
pop ebx
ret 4
js 0x47bade
mov edx, dword [esi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x47ba9e
push edi
mov ecx, esi
call fcn.0040d70c
mov edx, dword [esi]
push edi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x47bab1
xor ecx, ecx
jmp 0x47bac3
push dword [eax - 8]
push eax
call fcn.004e3697
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x47bade
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x47bade
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov word [eax + ecx*2], dx
lea eax, [edx + 1]
ret 4
push 0x80070057
call fcn.0040d86a
mov ecx, edx
call ebx
jmp 0x47ba51
mov ecx, edi
call dword [eax + 0xc]
jmp 0x47ba72
Function at 0x48913a
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x516b14
call fcn.004db4c3
mov bl, dl
mov edi, ecx
cmp byte [0x57f574], 0
je 0x489197
lea ecx, [ebp - 0x10]
call fcn.0040ce82
and dword [ebp - 4], 0
mov esi, dword [edi]
test esi, esi
je 0x489176
push esi
call fcn.004e09b6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00410f3f
lea eax, [ebp - 0x10]
mov ecx, 0x57f540
push eax
call fcn.004a1cdb
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
cmp byte [0x57cb1c], 0
push dword [edi]
je 0x4891f4
lea ecx, [ebp - 0x10]
call fcn.0040d92c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call fcn.0040ce82
movzx ecx, bl
shl ecx, 0x12
add ecx, 0x10
mov byte [ebp - 4], 3
push ecx
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea edx, [ebp - 0x10]
mov ecx, eax
call fcn.00475bd0
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d148
jmp 0x4891fa
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.004db48c
ret