joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ee06
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x58c250]
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
movzx eax, word [ebp + 8]
mov esi, dword [0x594ad0]
push 0xf0
push eax
mov edi, 1
push esi
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47f1e8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47f1e8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x47f1e8
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x47f096
mov edi, dword [ebp - 0x21c]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x47f1e8
mov edx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov ecx, 0x403
add esi, 8
mov dword [ebp - 0x224], edx
cmp cx, ax
jne 0x47f134
push 3
lea edx, [ebp - 0x214]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], edx
call fcn.0047eee0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x220]
push eax
mov eax, dword [edx + 4]
push 0
push 0x143
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x47f10b
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
cmp eax, ecx
je 0x47f1cd
push eax
call fcn.004f1b71
add esp, 4
jmp 0x47f1cd
mov edx, 0x1234
cmp dx, ax
jne 0x47f1cd
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x244], 0xffffffff
mov dword [ebp - 0x114], eax
call fcn.0047eee0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
cmp eax, edx
je 0x47f1a3
push eax
call fcn.004f1b71
add esp, 4
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 0x248]
push eax
mov eax, dword [edx + 4]
push 0
push 0x40b
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x47f1cd
mov dword [ebp - 0x21c], 0
add esi, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], 0
jne 0x47f090
mov eax, dword [ebp - 0x21c]
jmp 0x47f1ea
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 - 0x10]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret 4
Function at 0x4809e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f126
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x418], edx
mov byte [ebp - 4], 1
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x480a5d
call fcn.0047dc10
mov edi, eax
jmp 0x480b71
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x480a76
call fcn.0047dc10
jmp 0x480b68
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x480a94
call fcn.0047dc10
jmp 0x480b68
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x420], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x480ae4
mov byte [ebp - 4], 0
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x480ac8
lea ecx, [ebp - 0x418]
call fcn.00489fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.0047e450
mov eax, 0x8007000e
jmp 0x480b97
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.0047f2e0
mov dword [ebp - 4], 1
jmp 0x480b1c
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x480b2d
mov edi, 0x8007000e
jmp 0x480b6a
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x480b46
call fcn.0047dc10
jmp 0x480b68
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x430]
call fcn.004805b0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x480b8e
lea ecx, [ebp - 0x418]
call fcn.00489fc0
mov 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 - 0x14]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4821f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp byte [esi + 2], 0
mov dword [ebp - 0x44], edi
mov word [ebp - 0x3c], 0xa0d
je 0x48227e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea edi, [esi + 0x28]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esi]
movzx edx, word [ebp - 0xe]
movzx eax, word [ebp - 0x12]
push ecx
movzx ecx, word [ebp - 0x14]
push edx
mov edx, dword [esi + 0x24]
push eax
push ecx
push edx
push 0x540734
push edi
call fcn.00401f60
mov eax, dword [edi]
add esp, 0x1c
lea ecx, [ebp - 0x38]
push ecx
push 0
push eax
mov byte [esi + 2], 0
call ebx
test eax, eax
je 0x482274
mov edx, dword [esi + 4]
shl edx, 0xa
cmp dword [ebp - 0x18], edx
jb 0x482274
inc word [esi]
mov byte [esi + 2], 1
cmp byte [esi + 2], 0
jne 0x482220
mov edi, dword [ebp - 0x44]
pop ebx
mov esi, dword [esi + 0x28]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4822f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4822b8
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4822c0
push 0
lea ecx, [ebp - 0x40]
push ecx
sub eax, edx
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
push 0
lea edx, [ebp - 0x40]
push edx
push 2
lea eax, [ebp - 0x3c]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f0194
mov esp, ebp
pop ebp
ret 4
Function at 0x4856d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fd83
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004dc8cb
mov dword [ebp - 4], 0
push 4
call fcn.004f1c23
mov edi, eax
add esp, 4
test edi, edi
je 0x485758
call fcn.004dc2e5
mov dword [edi], eax
call fcn.004dc19f
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004dc0d4
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x48574a
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004dc0fc
jmp 0x48575a
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
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 0x489e60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x594ad0]
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0xda
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0x540c8c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004f0194
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48b240
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530828
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.0048a9d0
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], bl
lea ecx, [ebp - 0x28]
call fcn.00489dd0
mov byte [ebp - 4], 1
cmp dword [0x58e9b0], ebx
jne 0x48b2ea
push 0xf0000000
push 1
push ebx
push ebx
push 0x58e9b0
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
cmp eax, ebx
jne 0x48b2ea
push 8
push 1
push ebx
push ebx
push 0x58e9b0
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x48b2d5
and eax, 0xffff
or eax, 0x80070000
cmp esi, ebx
jne 0x48b2ea
mov dword [ebp - 0x18], eax
push 0x565dc0
lea eax, [ebp - 0x18]
push eax
call fcn.004f08d9
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x24], bl
push edi
push 4
mov edx, dword [0x58e9b0]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
jne 0x48b327
mov dword [ebp - 0x1c], 0x80004005
push 0x565dc0
lea eax, [ebp - 0x1c]
push eax
call fcn.004f08d9
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.0042fce0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
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 0x48b380
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530858
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.0048aa40
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], bl
lea ecx, [ebp - 0x28]
call fcn.00489dd0
mov byte [ebp - 4], 1
cmp dword [0x58e9b4], ebx
jne 0x48b42a
push 0xf0000000
push 1
push ebx
push ebx
push 0x58e9b4
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
cmp eax, ebx
jne 0x48b42a
push 8
push 1
push ebx
push ebx
push 0x58e9b4
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x48b415
and eax, 0xffff
or eax, 0x80070000
cmp esi, ebx
jne 0x48b42a
mov dword [ebp - 0x18], eax
push 0x565dc0
lea eax, [ebp - 0x18]
push eax
call fcn.004f08d9
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x24], bl
push edi
push 2
mov edx, dword [0x58e9b4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
jne 0x48b467
mov dword [ebp - 0x1c], 0x80004005
push 0x565dc0
lea eax, [ebp - 0x1c]
push eax
call fcn.004f08d9
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.0042fce0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
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 0x48b4c0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530888
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.0048aab0
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], bl
lea ecx, [ebp - 0x28]
call fcn.00489dd0
mov byte [ebp - 4], 1
cmp dword [0x58e9b8], ebx
jne 0x48b56a
push 0xf0000000
push 1
push ebx
push ebx
push 0x58e9b8
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
cmp eax, ebx
jne 0x48b56a
push 8
push 1
push ebx
push ebx
push 0x58e9b8
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x48b555
and eax, 0xffff
or eax, 0x80070000
cmp esi, ebx
jne 0x48b56a
mov dword [ebp - 0x18], eax
push 0x565dc0
lea eax, [ebp - 0x18]
push eax
call fcn.004f08d9
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x24], bl
push edi
push 1
mov edx, dword [0x58e9b8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
jne 0x48b5a7
mov dword [ebp - 0x1c], 0x80004005
push 0x565dc0
lea eax, [ebp - 0x1c]
push eax
call fcn.004f08d9
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.0042fce0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
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 0x48be50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x108], 0
call fcn.004f0550
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
lea edx, [ebp - 0x10c]
push edx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x540cc4
mov dword [ebp - 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x10c]
test eax, eax
jne 0x48bee1
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret
push eax
push 0x540cbc
push esi
call fcn.00401f60
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004f0194
mov esp, ebp
pop ebp
ret
Function at 0x48ea40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5312d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
lea eax, [esi + 0x10]
push eax
mov dword [esi + 0xc], edx
call fcn.0048d7a0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x30], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4900e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5316dc
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x58c250]
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, dword [ebp + 8]
push 0
mov esi, ecx
mov dword [ebp - 0x418], edi
call fcn.0048ff60
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x414], eax
cmp eax, eax
ja 0x490133
cmp ebx, 0xffffffff
jbe 0x49013d
push 0x80070057
call fcn.004013f0
cmp ebx, 0x400
jbe 0x490153
push ebx
lea ecx, [ebp - 0x414]
call fcn.0047e470
jmp 0x49015f
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x41c], edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x414]
push ecx
mov ecx, esi
call fcn.0048ff60
mov esi, dword [ebp - 0x414]
lea edi, [ebx - 0x14]
xor eax, eax
xor ecx, ecx
test edi, edi
je 0x4901a7
nop
mov dl, byte [eax + str._Q__1.]
xor byte [ecx + esi + 0x14], dl
inc eax
cmp eax, 0xe
jb 0x4901a2
xor eax, eax
inc ecx
cmp ecx, edi
jb 0x490190
mov ecx, dword [ebp - 0x414]
mov edx, dword [ebp - 0x418]
push 0
lea eax, [ebp - 0x418]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, esi
jne 0x4901e0
call fcn.0047dc10
cmp eax, esi
jge 0x4901e0
push eax
mov dword [ebp - 0x41c], esi
call fcn.004013f0
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x490206
lea ecx, [ebp - 0x414]
call fcn.00489fc0
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.004f0194
mov esp, ebp
pop ebp
ret 4
Function at 0x490230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531728
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x58c250]
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 ecx, dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0x420], edi
call fcn.0048b080
xor esi, esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x414], ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x41c]
push esi
lea edx, [ebp - 0x418]
push edx
push 0x14
push eax
push ecx
mov dword [ebp - 0x418], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x4902bf
call fcn.0047dc10
jmp 0x4902d1
mov eax, dword [ebp - 0x418]
sub eax, 0x14
neg eax
sbb eax, eax
and eax, 0x80070026
xor ecx, ecx
cmp eax, esi
setge cl
cmp ecx, esi
jne 0x4902f3
push 0x565dc0
lea edx, [ebp - 0x418]
push edx
mov dword [ebp - 0x418], eax
call fcn.004f08d9
mov eax, dword [edi]
mov edx, dword [eax]
mov esi, dword [ebp - 0x414]
mov ecx, edi
call edx
mov ebx, eax
mov edi, 3
lea ecx, [esi + 0xc]
sub ebx, esi
lea ecx, [ecx]
mov eax, dword [ecx]
mov edx, dword [ebx + ecx]
cmp eax, edx
jb 0x4903a4
ja 0x4903a4
sub ecx, 4
dec edi
jns 0x490310
mov eax, dword [esi + 0x10]
add eax, 0x14
push eax
lea ecx, [ebp - 0x414]
call fcn.0048b1b0
mov edi, dword [esi + 0x10]
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x41c]
push 0
lea ecx, [ebp - 0x418]
push ecx
push edi
add edx, 0x14
push edx
push eax
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4903f2
call fcn.0047dc10
test eax, eax
js 0x4903a4
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x414]
push 0
push ecx
add edx, 0x14
push edx
call fcn.00489d60
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x420]
add esp, 0xc
push eax
call fcn.0048fef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x410]
cmp dword [ebp - 0x414], ecx
je 0x4903c1
lea ecx, [ebp - 0x414]
call fcn.00489fc0
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x41c]
push edx
call fcn.0048b0c0
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.004f0194
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x418], edi
jne 0x4903a4
jmp 0x49037a
Function at 0x492520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x594ad0]
push esi
mov esi, dword [ebp + 8]
push 0x80
lea eax, [ebp - 0x20c]
push eax
push 0xd8
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x49256c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret 4
push 1
push 5
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push ecx
push str._s_s
push esi
call fcn.00401f60
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov al, 1
pop esi
call fcn.004f0194
mov esp, ebp
pop ebp
ret 4
Function at 0x493180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531e7e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x2c]
mov ecx, 0x58c214
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x30]
mov ecx, 0x58c214
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x493210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531ece
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ecx, 1
mov dword [ebp - 4], ecx
lea eax, [edi + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], cl
mov eax, dword [eax]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49326c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea eax, [edi + 0x2c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
mov eax, dword [eax]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x493298
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [edi]
test esi, esi
je 0x4932cf
mov ebx, dword [edi + 4]
cmp esi, ebx
je 0x4932c4
lea esp, [esp]
lea eax, [edi + 0xc]
push esi
push eax
call fcn.00492860
add esi, 0x30
add esp, 8
cmp esi, ebx
jne 0x4932b0
mov ecx, dword [edi]
push ecx
call fcn.004efd7c
add esp, 4
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], 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
Function at 0x4947c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
mov eax, dword [esi + 4]
push 0x41e
push eax
call edi
push 0
push 0
push 0x130b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x494818
mov ecx, dword [esi + 4]
push 0x427
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x422
push edx
call edi
push 1
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [esi + 4]
push 0x422
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x427
push ecx
call edi
push 1
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc