joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412b45
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x4fb068]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x830], ecx
mov eax, dword [ebp - 0x830]
movzx eax, byte [eax + 4]
test eax, eax
je 0x412b71
jmp 0x412d18
mov eax, dword [ebp - 0x830]
mov byte [eax + 4], 1
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.00499e80
add esp, 0xc
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x412c0a
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x82c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x412bdb
cmp dword [ebp - 0x82c], 0
je 0x412bd9
push dword [ebp - 0x82c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x412c0a
push 2
pop eax
imul eax, eax, 0
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0x410
jae 0x412bf5
jmp 0x412bfa
call fcn.004971c8
xor eax, eax
mov ecx, dword [ebp - 0x834]
mov word [ebp + ecx - 0x414], ax
push 0x4ded6c
lea eax, [ebp - 0x414]
push eax
call fcn.004a1aca
pop ecx
pop ecx
push 0x4def50
lea eax, [ebp - 0x414]
push eax
call fcn.004a1aca
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412c71
push 2
pop eax
imul eax, eax, 0
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0x410
jae 0x412c5c
jmp 0x412c61
call fcn.004971c8
xor eax, eax
mov ecx, dword [ebp - 0x838]
mov word [ebp + ecx - 0x414], ax
push 0x412
push 0
lea eax, [ebp - 0x828]
push eax
call fcn.00499e80
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call fcn.0049ebd6
pop ecx
test eax, eax
jbe 0x412cea
push 0x207
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.004a1a87
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
call fcn.0049ebd6
pop ecx
test eax, eax
jbe 0x412cea
push 0x4ded6c
lea eax, [ebp - 0x828]
push eax
call fcn.004a1aca
pop ecx
pop ecx
push str.HaoZip.hzv
lea eax, [ebp - 0x828]
push eax
call fcn.004a1aca
pop ecx
pop ecx
call fcn.0041dfa0
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x828]
push eax
call fcn.0049ebd6
pop ecx
test eax, eax
jbe 0x412d18
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ebp - 0x83c]
call fcn.0041e080
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496c8f
leave
ret

Function at 0x412fa9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
jne 0x412fbc
xor eax, eax
jmp 0x41300a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x412fd6
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x412fda
xor eax, eax
jmp 0x41300a
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00412e0e
movzx eax, al
test eax, eax
jne 0x412ffb
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00412e2d
xor eax, eax
jmp 0x41300a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x413290
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
lea eax, [ebp - 0x3c]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.00499e80
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x400
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4132f2
cmp dword [ebp - 0x1c], 0x20
seta al
jmp 0x413303
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x413301
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
leave
ret

Function at 0x413978
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4fb068]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.00499e80
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4139d4
cmp dword [ebp - 0x114], 5
ja 0x4139d0
jne 0x4139d4
cmp dword [ebp - 0x110], 0
jbe 0x4139d4
mov al, 1
jmp 0x4139d6
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496c8f
leave
ret

Function at 0x4139e2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4fb068]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.00499e80
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x413a2a
xor al, al
jmp 0x413a35
cmp dword [ebp - 0x114], 6
sbb al, al
inc al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496c8f
leave
ret

Function at 0x413a41
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4fb068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and dword [esi], 0
cmp dword [0x4fbc88], 0
jne 0x413aae
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00499e80
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x4fbc78
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x210]
push eax
call fcn.00407710
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00496c8f
leave
ret
Function at 0x413b2d
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4fb068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4fe078]
mov dword [ebp - 0x220], ecx
push ebx
push esi
push edi
test eax, eax
jle 0x413b5f
inc eax
mov dword [0x4fe078], eax
mov al, 1
jmp 0x413c37
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
xor bl, bl
call fcn.00413af1
test al, al
je 0x413c24
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x413c24
push str.ImpersonateLoggedOnUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 0x21c]
push esi
call eax
test eax, eax
je 0x413c1b
mov ebx, dword [ebp - 0x220]
inc dword [0x4fe078]
cmp dword [ebx], 0
je 0x413bc3
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], esi
xor esi, esi
mov bl, 1
cmp dword [0x4fbc70], esi
jne 0x413c1b
push 0x20a
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00499e80
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x4fbc60
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00407710
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x413c2a
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x413c35
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496c8f
leave
ret

Function at 0x4149e3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4fb068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x110
xor ebx, ebx
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00499e80
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414a44
cmp dword [ebp - 0x114], 5
jae 0x414a46
cmp dword [ebp - 0x114], 4
jne 0x414a44
cmp dword [ebp - 0x110], 0x5a
jae 0x414a46
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00496c8f
leave
ret

Function at 0x4187a0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.00401dd0
test al, al
jne 0x4187c7
mov ecx, dword [esp + 8]
call fcn.00401de0
jmp 0x4187c9
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x4187f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x4187f3
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4
Function at 0x418820
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd708
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4fb068]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x418866
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00424770
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41888f
lea ebx, [esi + 8]
jmp 0x418891
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00401dd0
test al, al
jne 0x4188a7
mov ecx, dword [ebp - 0x18]
call fcn.00401de0
jmp 0x4188a9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x4188ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4188ca
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4188f3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x418908
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00497076
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
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.00496c8f
mov esp, ebp
pop ebp
ret 4
Function at 0x419c80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4fb068]
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 edi, ecx
call fcn.00401dd0
test al, al
je 0x419cbd
xor al, al
jmp 0x419e69
mov ecx, edi
call fcn.00419bc0
test al, al
je 0x419ccf
mov al, 1
jmp 0x419e69
push 0
mov ecx, edi
call fcn.00401de0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x419d1e
lea ecx, [ebp - 0x28]
call fcn.004077f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004259f0
test al, al
je 0x419d0f
push 0
lea ecx, [ebp - 0x28]
call fcn.00401de0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401df0
mov ecx, edi
call fcn.00419bc0
test al, al
jne 0x419cc8
mov ecx, edi
call fcn.00401ec0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x419e0e
mov ecx, edi
call fcn.00401e50
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x419d52
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x419d75
mov eax, ebx
cmp ecx, 8
jb 0x419d6b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x419dfe
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040f507
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401dd0
test al, al
jne 0x419def
lea ecx, [ebp - 0x28]
call fcn.004199b0
test al, al
jne 0x419def
push 0
lea ecx, [ebp - 0x28]
call fcn.00401de0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x419def
lea ecx, [ebp - 0x40]
call fcn.004077f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004259f0
test al, al
je 0x419de3
push 0
lea ecx, [ebp - 0x40]
call fcn.00401de0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00401df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401df0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x419d46
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.004199b0
test al, al
jne 0x419e62
push 0
mov ecx, edi
call fcn.00401de0
push eax
call ebx
test eax, eax
jne 0x419e62
lea ecx, [ebp - 0x40]
call fcn.004077f0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004259f0
test al, al
je 0x419e53
push 0
lea ecx, [ebp - 0x40]
call fcn.00401de0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401df0
mov ecx, edi
call fcn.00419bc0
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.00496c8f
mov esp, ebp
pop ebp
ret
Function at 0x41a0d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4fb068]
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, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.00401de0
push eax
mov ecx, edi
call fcn.00401de0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41a1f2
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.004077f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.004259f0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.004077f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.004259f0
test al, al
jne 0x41a165
test bl, bl
je 0x41a183
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00401de0
push eax
lea ecx, [ebp - 0x58]
call fcn.00401de0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41a1d7
mov ecx, esi
call fcn.00425160
cmp eax, 0xffffffff
je 0x41a209
push esi
lea ecx, [ebp - 0x28]
call fcn.00407810
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004257b0
test al, al
je 0x41a1fd
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00425200
test al, al
je 0x41a1fd
mov edx, esi
mov ecx, edi
call fcn.00425200
lea ecx, [ebp - 0x28]
test al, al
je 0x41a1f6
call fcn.00425410
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401df0
mov al, 1
jmp 0x41a226
mov edx, esi
call fcn.00425200
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401df0
xor al, al
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.00496c8f
mov esp, ebp
pop ebp
ret

Function at 0x41a6f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4fb068]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.0040f215
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.00499e80
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x41a74c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00496c8f
add esp, 0x418
ret
cmp eax, 0x208
jae 0x41a734
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.004020d0
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.00401ed0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.00496c8f
add esp, 0x418
ret
Function at 0x41c840
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be078
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4fb068]
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 eax, dword [esi + 8]
test eax, eax
jne 0x41c87b
xor al, al
jmp 0x41c902
add eax, 0x20
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f6dc
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x41c8ef
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x41c420
push 0
push 0
call fcn.004a278b
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x41c91e
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x41c8e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.0041c5b0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040f6ff
mov al, bl
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.00496c8f
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41c936
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x41c8d6
mov bl, 1
jmp 0x41c8f1

Function at 0x41cf70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x41cfa8
mov edx, dword [esp + 4]
test edx, edx
je 0x41cfa8
cmp dword [eax], 0xffffffff
je 0x41cfa8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cfa8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x41cfb0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x41cfea
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41cfea
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41cfea
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41cfea
cmp edi, dword [esi]
jne 0x41cfea
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x41d060
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4fb068]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x41d0c3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41d0c3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d09e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41d0c3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00496c8f
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00496c8f
add esp, 8
ret 4

Function at 0x41d1c0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x41d26e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.0041d0e0
test al, al
je 0x41d26e
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.0041d0e0
test al, al
je 0x41d26e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x41d244
cmp dword [esp + 0x14], edi
jne 0x41d244
mov eax, dword [esi]
test eax, eax
jne 0x41d231
xor bl, bl
jmp 0x41d244
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41d22d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.0041d0e0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d3f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be2d6
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x4fb068]
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 [ebp + 8]
lea ecx, [ebp - 0x654]
mov ebx, dword [ebp + 0xc]
call fcn.004077f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x63c]
push 0x4fe128
mov dword [ebp - 0x63c], 0
call fcn.0040f6dc
mov byte [ebp - 4], 1
mov ecx, 0x4fe138
call fcn.00401dd0
test al, al
jne 0x41d499
mov ecx, 0x4fe138
call fcn.00401e50
lea ecx, [ebp - 0x654]
cmp ecx, eax
je 0x41d55d
mov ecx, 0x4fe138
call fcn.00401e50
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41d490
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x41d552
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00499e80
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x41d5f0
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call fcn.00499e80
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x41d53b
test eax, eax
je 0x41d53b
add eax, eax
cmp eax, 0x412
jae 0x41d633
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.004020d0
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x41d551
lea eax, [ebp - 0x220]
push eax
call fcn.004020d0
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x654]
call fcn.00401ed0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.0040f6ff
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.0041d380
test al, al
je 0x41d584
mov bl, 1
jmp 0x41d601
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00499e80
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x41d5ff
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.004020d0
add esp, 4
lea ecx, [ebp - 0x654]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00401ed0
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.0041d380
mov bl, al
jmp 0x41d601
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.0040f6ff
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.00401df0
mov al, bl
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.00496c8f
mov esp, ebp
pop ebp
ret 8
call fcn.004971c8
int3
Function at 0x41ea40
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4fb068]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.00496cae
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.00499e80
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x41ea9c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00496c8f
add esp, 0x120
ret