joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4227e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465318
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0xc]
xor esi, esi
push eax
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], esi
call fcn.0040f840
mov ecx, dword [edi + 0x34]
sub ecx, dword [edi + 0x30]
mov dword [ebp - 0x10], esi
sar ecx, 2
test ecx, ecx
jbe 0x4228b5
mov edx, dword [edi + 0x34]
sub edx, dword [edi + 0x30]
sar edx, 2
cmp esi, edx
jb 0x422841
call fcn.00448717
mov eax, dword [edi + 0x30]
cmp dword [eax + esi*4], 0
je 0x4228a0
mov ecx, dword [edi + 0x34]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x42285b
call fcn.00448717
mov edx, dword [edi + 0x30]
mov ebx, dword [edx + esi*4]
mov eax, dword [ebp + 0xc]
sub esp, 0x10
mov esi, esp
mov dword [esi], eax
mov cx, word [ebp + 0x10]
mov word [esi + 4], cx
mov edx, dword [ebp + 0x14]
mov dword [esi + 8], edx
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
push eax
call fcn.0040f2a0
mov ecx, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [esi + 0xc], eax
mov eax, dword [ebx]
mov edx, dword [eax]
push ecx
mov ecx, ebx
call edx
mov esi, dword [ebp - 0x10]
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x30]
inc esi
sar eax, 2
mov dword [ebp - 0x10], esi
cmp esi, eax
jb 0x42282f
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4228db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x424010
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x423ff0
push eax
push eax
mov dword [ebp - 4], eax
mov dword [esi + 0x5c], eax
call fcn.0044c2c5
add esp, 0x18
mov dword [esi + 0x1c], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x46d64c
push eax
call fcn.0044c7eb
mov esi, eax
add esp, 8
test esi, esi
jne 0x4244c2
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x45c]
push eax
call fcn.00408780
push esi
push 0x400
lea ecx, [ebp - 0x404]
push 1
push ecx
call fcn.0044c708
add esp, 0x14
test eax, eax
je 0x42451f
lea esp, [esp]
push eax
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x45c]
push eax
call fcn.004087b0
push esi
push 0x400
lea ecx, [ebp - 0x404]
push 1
push ecx
call fcn.0044c708
add esp, 0x1c
test eax, eax
jne 0x4244f0
lea edx, [ebp - 0x45c]
push edx
push edi
call fcn.00408850
push esi
call fcn.0044c3ec
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00447f52
mov esp, ebp
pop ebp
ret
Function at 0x424570
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
cmp eax, ebx
jne 0x4245a3
push 0x46d754
call fcn.00426d30
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0xffffffff
jne 0x4245e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46c7a8
call fcn.00426d30
add esp, 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x424610
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46d714
call fcn.00426d30
add esp, 8
jmp 0x424720
mov esi, dword [ebp - 0x1c]
push edi
push 0x484e4e
push esi
mov dword [ebp - 0x14], esi
call fcn.0044bd2d
add esp, 8
mov edi, eax
test edi, edi
jne 0x424669
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x484e4e
push esi
call fcn.0044bd2d
inc ebx
add esp, 8
cmp ebx, 3
mov edi, eax
jl 0x424627
test edi, edi
jne 0x424669
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46d6d0
call fcn.00426d30
add esp, 8
jmp 0x42471f
mov ebx, esi
mov eax, esi
xor esi, esi
shr ebx, 0xc
and eax, 0xfff
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], esi
mov dword [ebp - 4], esi
test ebx, ebx
jbe 0x4246d4
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp + 8]
push ecx
push 0x1000
lea edx, [esi + edi]
push edx
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4246b8
mov eax, dword [ebp - 4]
add esi, dword [ebp + 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, ebx
jb 0x424684
jmp 0x4246d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46d694
call fcn.00426d30
add esp, 8
cmp dword [ebp - 4], ebx
jb 0x42471f
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x42470d
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp + 8]
push ecx
push eax
add esi, edi
push esi
push edx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42470d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46d65c
call fcn.00426d30
add esp, 8
jmp 0x42471f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x42472e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00449830
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1010], ecx
cmp eax, 0xffffffff
je 0x4248ca
xor ebx, ebx
cmp edi, ebx
je 0x4248ca
mov eax, dword [ebp + 0x10]
push esi
mov esi, eax
shr esi, 0xc
and eax, 0xfff
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1008], ebx
cmp esi, ebx
jbe 0x42483e
nop
push 0x1000
lea edx, [ebp - 0x1004]
push edi
push edx
call fcn.0044b690
mov edx, dword [ebp - 0x100c]
add esp, 0xc
push 0
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42487b
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x42482d
mov ecx, dword [ebp - 0x1008]
add dword [eax], ecx
inc ebx
add edi, 0x1000
cmp ebx, esi
jb 0x4247e0
mov eax, dword [ebp - 0x1014]
test eax, eax
jbe 0x4248b4
push eax
lea edx, [ebp - 0x1004]
push edi
push edx
call fcn.0044b690
mov ecx, dword [ebp - 0x1014]
add esp, 0xc
push 0
lea eax, [ebp - 0x1008]
push eax
mov eax, dword [ebp - 0x100c]
push ecx
lea edx, [ebp - 0x1004]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4248a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46d77c
call fcn.00426d30
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x4248b4
mov ecx, dword [ebp - 0x1008]
add dword [eax], ecx
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00447f52
mov esp, ebp
pop ebp
ret

Function at 0x424a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
je 0x424a9b
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esi + 4], edi
mov eax, dword [esi + 0x10]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
cmp eax, edi
je 0x424ab2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x10], edi
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x424adb
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebx
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x424ad2
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [ebp + 0x10]
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x424c40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
inc edi
cmp esi, 0xffffffff
jne 0x424ca4
cmp edi, 3
jle 0x424c56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push 0x46d958
call fcn.00426d30
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
push ecx
push edx
push esi
mov dword [ebp + 8], 0
call fcn.00424780
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424d60
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1108
call fcn.00449830
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x800
lea ecx, [ebp - 0x1104]
push 0
push ecx
mov dword [ebp - 0x1108], eax
call fcn.00448540
push 0x800
lea edx, [ebp - 0x904]
push 0
push edx
call fcn.00448540
add esp, 0x18
push 0
push 0x1a
lea eax, [ebp - 0x1104]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x424dce
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x100
lea ecx, [ebp - 0x104]
push 0
push ecx
call fcn.00448540
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor esi, esi
jmp 0x424e00
lea edx, [ebp - 0x104]
push 0x80
push edx
call fcn.00424940
add esp, 8
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x1104]
push ecx
lea edx, [ebp - 0x904]
push edx
call edi
lea eax, [ebp - 0x904]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x424e34
mov ecx, dword [0x46d9a4]
mov edx, dword [0x46d9a8]
mov dword [eax], ecx
mov cx, word [0x46d9ac]
mov dword [eax + 4], edx
lea edx, [ebp - 0x904]
push edx
mov word [eax + 8], cx
call ebx
test eax, eax
je 0x424e82
inc esi
cmp esi, 0xa
jl 0x424e00
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x904]
lea edx, [eax + 2]
jmp 0x424e90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424e90
mov ecx, dword [ebp - 0x1108]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x904]
push eax
call fcn.0040f710
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00447f52
mov esp, ebp
pop ebp
ret
Function at 0x425100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test edi, edi
je 0x425222
test esi, esi
je 0x425222
cmp word [edi], 0
je 0x425222
cmp word [esi], 0
je 0x425222
push ebx
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push 0x46d9b0
push SysReAllocString
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x20]
mov ebx, eax
je 0x42520e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425170
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push esi
push 2
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
je 0x4251f5
mov edx, dword [0x46d9b0]
mov eax, dword [0x46d9b4]
mov ecx, dword [0x46d9b8]
mov dword [ebp - 0x1c], edx
mov edx, dword [0x46d9bc]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x24]
push edx
push 0xbb8
mov dword [ebp - 0x18], eax
mov eax, dword [0x46d9c0]
push 1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x46d9c4]
push 0x1a
push 0xffff
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
xor esi, esi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00447f52
mov esp, ebp
pop ebp
ret
Function at 0x425340
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00448540
add esp, 0xc
call fcn.004252c0
cmp eax, 5
ja case.default.0x425380
jmp dword [eax*4 + 0x4254d8]
push 0
push 0x28
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4254c4
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
jmp 0x4253b0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4253b0
push esi
mov ecx, 0xa
mov esi, 0x46da0c
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp case.default.0x425380
push 0
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4254c4
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4253f5
mov ecx, dword [0x46d9f4]
mov edx, dword [0x46d9f8]
mov dword [eax], ecx
mov ecx, dword [0x46d9fc]
mov dword [eax + 4], edx
mov edx, dword [0x46da00]
mov dword [eax + 8], ecx
mov ecx, dword [0x46da04]
mov dword [eax + 0xc], edx
mov edx, dword [0x46da08]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jmp case.default.0x425380
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00448540
lea eax, [ebp - 0x20c]
add esp, 0xc
add eax, 0xfffffffe
jmp 0x425460
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x425460
mov ecx, dword [0x46d9e4]
mov edx, dword [0x46d9e8]
mov dword [eax], ecx
mov ecx, dword [0x46d9ec]
mov dword [eax + 4], edx
mov edx, dword [0x46d9f0]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x20c]
push eax
push 0x46d9dc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x4254c4
lea ecx, [ebp - 0x20c]
mov edi, 0x46d9dc
call fcn.00425100
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00447f52
mov esp, ebp
pop ebp
ret
Function at 0x425800
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4655d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x425883
mov ecx, dword [ebp + 0x10]
push ecx
call esi
test eax, eax
je 0x425883
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.00424570
add esp, 8
test eax, eax
je 0x425883
movzx edx, word [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push 0x46dbd4
push edx
push eax
call fcn.00424b20
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x425893
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4258b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4258dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x425930
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465653
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CSettingHelper.0
mov eax, dword [0x484394]
mov edx, dword [eax + 0xc]
mov ecx, 0x484394
lea edi, [esi + 8]
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, dword [0x484394]
mov edx, dword [eax + 0xc]
mov ecx, 0x484394
mov dword [ebp - 4], 0
lea ebx, [esi + 0xc]
call edx
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [0x484394]
mov edx, dword [eax + 0xc]
mov ecx, 0x484394
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [0x484394]
mov edx, dword [eax + 0xc]
mov ecx, 0x484394
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x484394]
mov edx, dword [eax + 0xc]
mov ecx, 0x484394
mov byte [ebp - 4], 3
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
mov eax, dword [0x484394]
mov edx, dword [eax + 0xc]
mov ecx, 0x484394
mov byte [ebp - 4], 4
call edx
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [0x484394]
mov edx, dword [eax + 0xc]
mov ecx, 0x484394
mov byte [ebp - 4], 5
call edx
add eax, 0x10
mov dword [esi + 0x3c], eax
mov eax, dword [0x484394]
mov edx, dword [eax + 0xc]
mov ecx, 0x484394
mov byte [ebp - 4], 6
call edx
add eax, 0x10
mov dword [esi + 0x40], eax
mov eax, dword [0x484394]
mov edx, dword [eax + 0xc]
mov ecx, 0x484394
mov byte [ebp - 4], 7
call edx
add eax, 0x10
mov dword [esi + 0x44], eax
push 0
push 0x475810
mov ecx, edi
mov byte [ebp - 4], 8
mov dword [esi + 4], 0
call fcn.0040f710
xor edi, edi
push edi
push 0x475810
mov ecx, ebx
call fcn.0040f710
push edi
push 0x475810
lea ecx, [esi + 0x10]
call fcn.0040f710
push edi
push 0x475810
lea ecx, [esi + 0x14]
call fcn.0040f710
push edi
push 0x475810
lea ecx, [esi + 0x18]
call fcn.0040f710
push edi
push 0x475810
lea ecx, [esi + 0x1c]
call fcn.0040f710
mov eax, 1
push edi
push 0x475810
lea ecx, [esi + 0x3c]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
call fcn.0040f710
push edi
push 0x475810
lea ecx, [esi + 0x40]
call fcn.0040f710
push edi
push 0x475810
lea ecx, [esi + 0x44]
call fcn.0040f710
mov eax, esi
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 0x426080
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
lea ecx, [ebp - 0x804]
push 0
push ecx
mov dword [ebp - 0x808], eax
call fcn.00448540
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esp, 0xc
lea edx, [ebp - 0x804]
push edx
push 0x400
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x804]
push eax
call ebx
mov esi, eax
cmp esi, 1
je 0x42612e
call fcn.00425340
mov esi, eax
test esi, esi
je 0x426132
push 0x800
lea ecx, [ebp - 0x804]
push 0
push ecx
call fcn.00448540
add esp, 0xc
lea edx, [ebp - 0x804]
push edx
push 0x400
call edi
lea eax, [ebp - 0x804]
push eax
call ebx
test eax, eax
jne 0x42612e
push eax
lea ecx, [ebp - 0x804]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x426132
test esi, esi
jne 0x426145
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426150
mov ecx, dword [ebp - 0x808]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x804]
push edx
call fcn.0040f710
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00447f52
mov esp, ebp
pop ebp
ret
Function at 0x426190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465700
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
je 0x426309
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x426309
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x426309
lea ecx, [ebp - 0x24]
call fcn.00424550
movzx eax, word [ebp + 0xc]
push 0x46dbd4
push eax
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00424a80
test eax, eax
je 0x42625b
mov edx, dword [0x484394]
mov eax, dword [edx + 0xc]
mov ecx, 0x484394
call eax
add eax, 0x10
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
push ecx
mov byte [ebp - 4], 1
call fcn.00426080
add esp, 4
test eax, eax
jne 0x42626f
mov byte [ebp - 4], al
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42625b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00424a40
jmp 0x426302
push 0x10
push 0x46dbdc
lea ecx, [ebp + 8]
call fcn.00415770
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x24]
call fcn.00424c40
test eax, eax
jne 0x4262af
mov byte [ebp - 4], al
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4262f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4262f0
push 1
push 0
push ecx
add esi, 0xfffffff0
mov dword [ebp + 0xc], esp
mov edi, esp
push esi
call fcn.0040f2a0
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [edi], eax
call fcn.00425c00
mov edi, eax
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4262f0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00424a40
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8