joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401533
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401dc7
sub eax, fcn.00401592
push eax
push fcn.00401592
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107a
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401461
mov eax, ebx
lea ecx, [ebx + 0x1b600]
call fcn.004014b3
mov esi, ecx
mov eax, ebx
or si, 1
cdq
idiv esi
lea edx, [eax + ecx]
mov eax, ebx
lea ebx, [ebp - 2]
or eax, 0x402054
call fcn.00401592
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401533
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push edx
enter 0x11c, 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x18]
sub eax, 0x41
leave
pop edx
pop ecx
ret
Function at 0x402470
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
push ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
or eax, 0x80
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0x51
push 0
push 0
push 0xfffff830
push 0xfffff830
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0xd0], 0
jne 0x402525
lea eax, [esp]
push eax
push 0
push esi
push 0x402720
push 0
push 0
call fcn.0040b6b8
add esp, 0x18
mov dword [esi + 0xd0], eax
test eax, eax
je 0x402525
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop ecx
ret
Function at 0x402530
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0xd4]
cmp eax, 0xc8
jb 0x4026c2
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov esi, 0x422aa4
call fcn.00402cf0
lea ebx, [edi + 0xc8]
call fcn.0040a0a0
test eax, eax
je 0x4026c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0xd4], eax
mov ebx, dword [0x422ab0]
mov esi, dword [0x422aa8]
mov ecx, ebx
sub ecx, esi
cmp ecx, 0x2a
jge 0x4025a6
lea esi, [ebx - 0x2a]
mov dword [0x422aa8], esi
mov ecx, dword [0x422aa4]
mov eax, dword [0x422aac]
sub eax, ecx
sub eax, ebx
add eax, esi
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov edx, ecx
sub edx, esi
add edx, ebx
mov dword [0x422aac], edx
mov dword [0x422aa4], ecx
mov eax, dword [edi + 0xf4]
sub ebx, esi
imul eax, ebx
cdq
idiv dword [edi + 0xf8]
sub esp, 0x10
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], eax
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
mov eax, dword [esp + 0x20]
lea edx, [ecx + eax]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [0x422aa4], ecx
mov ecx, dword [0x422ab0]
mov dword [eax + 8], edx
mov esi, edi
mov dword [0x422aac], edx
mov dword [eax + 0xc], ecx
call fcn.00402960
test al, al
je 0x402631
xor edx, edx
jmp 0x402635
mov edx, dword [esp + 0x14]
mov eax, dword [0x422aa8]
mov ecx, dword [0x422ab0]
mov esi, dword [0x422aac]
push 0x58
sub ecx, eax
push ecx
mov ecx, dword [0x422aa4]
sub esi, ecx
push esi
push eax
push ecx
push edx
mov edx, dword [edi]
mov eax, dword [edx + 0x8c]
mov ecx, edi
call eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x10]
xor eax, eax
sub esp, 0x10
mov dword [0x422aa8], eax
mov dword [0x422aa4], eax
mov dword [esp + 0x24], esp
mov eax, esp
push 0x422aa4
push eax
mov dword [0x422ab0], ebx
mov dword [0x422aac], ecx
call dword [sym.imp.USER32.dll_CopyRect]
call fcn.00402b50
mov edx, dword [edi]
mov eax, dword [edx + 0x8c]
push 1
mov ecx, edi
call eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402540
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0xd4]
cmp eax, 0x1f4
jb 0x4026f6
mov edx, dword [edi]
mov eax, dword [edx + 0x8c]
push 0
push 0
push 0x4c8
mov ecx, edi
call eax
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x402540
sub esp, 0x10
mov dword [esp + 0x24], esp
mov eax, esp
push 0x422aa4
push eax
call dword [sym.imp.USER32.dll_CopyRect]
call fcn.00402b50
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402540
Function at 0x402830
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x418ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x420280]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
call fcn.00407880
add esp, 4
mov ebx, 0x41bfb0
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
mov dword [esp + 0x54], 0
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 1
call fcn.004030a0
mov edi, 8
mov byte [esp + 0x54], 0
cmp dword [esp + 0x28], edi
jb 0x4028b8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040b1ba
add esp, 4
mov ebx, str..exe
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
call fcn.004030a0
cmp dword [esp + 0x28], edi
jb 0x4028f0
mov edx, dword [esp + 0x14]
push edx
call fcn.0040b1ba
add esp, 4
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x4028fe
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402928
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x402917
lea eax, [esp + 0x30]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x44], edi
jb 0x40293b
mov eax, dword [esp + 0x30]
push eax
call fcn.0040b1ba
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040b1c5
add esp, 0x48
ret
Function at 0x4029d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4029f5
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebp
push eax
call fcn.0040d1e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
push eax
push 1
xor edi, edi
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x402b3c
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x402b3c
push eax
push ebx
call fcn.00401440
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebx + 0x18], 0x20
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jne 0x402b33
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x402b33
xor ebp, ebp
cmp dword [esp + 0x14], ebp
jle 0x402b22
mov eax, dword [ebx + 0x18]
imul eax, dword [esp + 0xc]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebx + 0x14]
imul edx, ebp
mov ecx, eax
sar ecx, 3
add ecx, edx
add ecx, dword [ebx + 8]
mov eax, 0x80808081
movzx edi, byte [ecx + 3]
movzx esi, byte [ecx]
imul esi, edi
add esi, 0x7f
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 2]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
inc ebp
cmp ebp, dword [esp + 0x14]
mov byte [ecx + 2], al
jl 0x402a93
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
inc ecx
cmp ecx, eax
mov dword [esp + 0xc], ecx
jl 0x402a87
mov al, 1
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret
Function at 0x4037c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x418818
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x420280]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
call fcn.004030a0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403813
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00403870
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004030a0
cmp dword [esp + 0x24], 8
jb 0x40385d
mov eax, dword [esp + 0x10]
push eax
call fcn.0040b1ba
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x403af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403b07
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403b38
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403b34
cmp esi, eax
jae 0x403b38
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403b24
cmp esi, eax
jb 0x403b3e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x404cf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.004050b0
xor eax, eax
mov dword [esp + 0x44], esi
mov word [esp + 0x34], ax
mov dword [esp + 0x10], esi
push 3
mov eax, 0x41bfb0
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
call fcn.004048b0
mov ecx, esi
mov ebx, 0x41c318
lea esi, [esp + 0x14]
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.004030a0
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x404d7c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b1ba
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x404d8a
lea eax, [esp + 0x34]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404de1
mov edx, dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x422784
push 0x67
push edi
mov dword [0x42277c], edi
mov dword [0x422780], edx
call esi
push 0x64
push 0x42284c
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00404e30
call fcn.00404650
mov esi, eax
jmp 0x404de5
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00405010
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x48], 8
jb 0x404e11
mov eax, dword [esp + 0x34]
push eax
call fcn.0040b1ba
add esp, 4
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b1c5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x406270
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x406280
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406760
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x4067da
xor eax, eax
cmp ecx, ebp
je 0x4067c2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x4067e8
cmp ecx, ebp
je 0x40687b
push ecx
jmp 0x406875
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40684a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00406760
mov ebx, eax
cmp ebx, ebp
jne 0x406898
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x406810
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40685d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00406910
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40687b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b1c5
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4068a7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40687d
Function at 0x407390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x418b40
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x420280]
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 eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40740f
call fcn.00405b70
mov esi, eax
jmp 0x4074f1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40742b
call fcn.00405b70
jmp 0x4074e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x407444
call fcn.00405b70
jmp 0x4074e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x407478
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x407466
lea eax, [ebp]
call fcn.004061f0
lea esi, [ebp - 0x1c]
call fcn.00404480
mov eax, 0x8007000e
jmp 0x407503
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00405b30
mov dword [ebp - 4], 1
jmp 0x4074a1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x4074af
mov esi, 0x8007000e
jmp 0x4074ea
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x4074cd
call fcn.00405b70
jmp 0x4074e8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00407240
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x407501
lea eax, [ebp]
call fcn.004061f0
mov eax, esi
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.0040b1c5
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407880
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x418a3c
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x420280]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x30], ebx
test byte [0x422ad0], al
jne 0x407900
or dword [0x422ad0], eax
xor eax, eax
push 0x418ff0
mov dword [0x422acc], 7
mov dword [0x422ac8], ebx
mov word [0x422ab8], ax
call fcn.0040bc01
add esp, 4
cmp dword [0x422ac8], ebx
je 0x407920
xor ecx, ecx
push 0xffffffffffffffff
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], cx
push ebx
jmp 0x407ab8
push ebx
push 0x1a
lea edx, [esp + 0x58]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407936
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x54]
mov esi, 0x422ab4
call fcn.004048b0
mov edi, esi
lea eax, [esp + 0x14]
call fcn.00407810
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x270], ebx
call fcn.004030a0
mov edi, 8
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x407994
mov eax, dword [esp + 0x18]
push eax
call fcn.0040b1ba
add esp, 4
mov ebx, 0x41c558
mov ecx, 0x422ab4
lea esi, [esp + 0x14]
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x422ab4
mov dword [esp + 0x270], 1
call fcn.004030a0
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x4079df
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b1ba
add esp, 4
mov ebx, 0x41bfb0
mov ecx, 0x422ab4
lea esi, [esp + 0x14]
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x422ab4
mov dword [esp + 0x270], 2
call fcn.004030a0
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x407a2a
mov edx, dword [esp + 0x18]
push edx
call fcn.0040b1ba
add esp, 4
mov ebx, 0x41c554
mov ecx, 0x422ab4
lea esi, [esp + 0x34]
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x422ab4
mov dword [esp + 0x270], 3
call fcn.004030a0
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x4c], edi
jb 0x407a75
mov eax, dword [esp + 0x38]
push eax
call fcn.0040b1ba
add esp, 4
xor ecx, ecx
cmp dword [0x422acc], edi
mov edi, dword [0x422ab8]
mov esi, 7
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov word [esp + 0x38], cx
jae 0x407aa0
mov edi, 0x422ab8
call fcn.00407af0
xor edx, edx
push 0xffffffffffffffff
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], 0
mov word [ebp + 4], dx
push edx
push 0x422ab4
mov ecx, ebp
call fcn.004030a0
mov eax, ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0040b1c5
add esp, 0x254
ret