joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449640
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4497eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4497cc
mov dl, 1
mov eax, dword [0x4116c8]
call fcn.00403484
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404208
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4497bb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00437264
test al, al
je 0x4497ae
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4497fc
lea eax, [ebp - 0x254]
call fcn.00408d10
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4497ae
xor eax, eax
push ebp
push 0x4497a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x449834
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x449790
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404470
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x449790
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4497ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4496b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415810
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4497f2
lea eax, [ebp - 0x260]
call fcn.00404208
ret

Function at 0x44a120
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x44fbfc]
cmp byte [eax + 0xa5], 0
jne 0x44a191
cmp dword [0x44fc14], 0
jne 0x44a152
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a0dc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x44fc14], eax
cmp dword [0x44fc10], 0
jne 0x44a16d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x44fc10], eax
cmp dword [0x44fc18], 0
jne 0x44a191
push esp
push 0
push 0
push 0x44a080
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44fc18], eax
pop edx
ret
Function at 0x44a288
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44a29f
add esp, 0xfffffff0
call fcn.00403800
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b178
mov eax, dword [0x44ed64]
cmp word [eax + 2], 0
jne 0x44a2c7
mov eax, dword [0x44ed64]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b8bc
mov eax, dword [0x44ede8]
cmp word [eax + 2], 0
jne 0x44a2e1
mov eax, dword [0x44ede8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044bab4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4111d8]
call fcn.00403484
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4111d8]
call fcn.00403484
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41d2b8]
call fcn.00422ec4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44a468
mov eax, dword [0x44eca8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423294
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44c024
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44eca8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040a58c
test eax, eax
je 0x44a3d6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040866c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a5b4
test eax, eax
je 0x44a3ea
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404470
mov eax, dword [0x44ebd4]
cmp byte [eax], 0
jne 0x44a41e
mov eax, ebx
call fcn.0044a590
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044c200
mov eax, ebx
call fcn.0044cb40
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44a45e
call fcn.00403858
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a804
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44fbfc]
cmp dword [eax + 0x30], 0
je 0x44a8ae
cmp dword [ebx + 0x94], 0
jne 0x44a8a8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a794
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a8a8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a86e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a8a8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413878
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a87d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b38c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b3c1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042f8
jmp 0x44b3ce
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040425c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c3dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c41d
mov eax, esi
call fcn.00432b28
test al, al
je 0x44c41d
mov eax, dword [ebx + 0x84]
call fcn.00432824
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c41d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432824
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x100474c2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 1
push 0x6e1b
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x73cf
call fcn.10047216
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100474fc
xor eax, eax
jmp 0x1004761a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1004751a
xor eax, eax
jmp 0x1004761a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 1
call fcn.10047271
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x10047539
xor eax, eax
jmp 0x1004761a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
call fcn.100472d4
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x7920
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 0x7e03
call fcn.10047353
add esp, 0x18
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10047597
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.100473d2
add esp, 0xc
push dword [ebp - 4]
call fcn.10046dc7
pop ecx
test eax, eax
jne 0x100475a8
xor eax, eax
jmp 0x1004761a
lea eax, [ebp - 4]
push eax
push 1
push 0x75a6
push 0x6ec8
call fcn.10047443
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10047602
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x100475df
xor eax, eax
jmp 0x1004761a
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100475f8
xor eax, eax
jmp 0x1004761a
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10047613
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10047617
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1006fa99
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10078330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005f38c
mov dword [ebp - 0x14], eax
cmp dword [0x10cb10cc], esi
jne 0x1006fb8c
push 0x800
push esi
push 0x10007c5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006fb19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006fc6c
push esi
push esi
push 0x10007c5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006fc6c
push 0x10007c74
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006fc6c
push eax
call ebx
push 0x10007c80
push edi
mov dword [0x10cb10cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007c90
push edi
mov dword [0x10cb10d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ca4
push edi
mov dword [0x10cb10d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cb10dc], eax
test eax, eax
je 0x1006fb89
push 0x10007cc0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cb10d8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006fbb1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006fba4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006fbc6
push 4
pop eax
jmp 0x1006fc6e
cmp dword [ebp - 0x14], esi
je 0x1006fbc6
push dword [0x10cb10cc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006fbab
mov eax, dword [0x10cb10d8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006fc24
cmp dword [0x10cb10dc], edi
je 0x1006fc24
push eax
call ebx
push dword [0x10cb10dc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006fc24
test eax, eax
je 0x1006fc24
call ecx
test eax, eax
je 0x1006fc19
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006fc19
test byte [ebp - 8], 1
jne 0x1006fc24
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006fc54
mov eax, dword [0x10cb10d0]
cmp eax, edi
je 0x1006fc51
push eax
call ebx
test eax, eax
je 0x1006fc51
call eax
mov esi, eax
test esi, esi
je 0x1006fc51
mov eax, dword [0x10cb10d4]
cmp eax, edi
je 0x1006fc51
push eax
call ebx
test eax, eax
je 0x1006fc51
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10cb10cc]
call ebx
test eax, eax
je 0x1006fc6c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006fc6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x40345c
Capabilities:
Create process on windows

Disassembly:
push 0x68
mov eax, 0x41ef45
call fcn.0040cc0a
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
lea ecx, [ebx + 0x24]
call fcn.00401627
mov ecx, ebx
call fcn.00404d78
movzx ecx, word [ebp + 0xc]
movzx eax, word [ebp + 0x10]
shl ecx, 0x10
or ecx, eax
lea eax, [ebp + 8]
push ecx
push eax
call fcn.00403bd1
pop ecx
pop ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], 3
jl 0x403543
xor eax, eax
mov dword [ebp - 0x74], 0x44
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
push 0x40
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040f250
add esp, 0xc
lea ecx, [ebp + 8]
xor eax, eax
inc eax
mov word [ebp - 0x44], ax
push ebx
mov dword [ebp - 0x48], eax
call fcn.00404d3c
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00405d68
test esi, esi
je 0x403543
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
add ecx, 0xc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x18], ax
mov ax, word [ebp + 0x10]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x20]
push eax
call fcn.00401d6e
jmp 0x403548
mov ebx, 0x80004005
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405d50
mov eax, ebx
call fcn.0040cbd3
ret 0xc
Function at 0x403bd1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x41f04c
call fcn.0040cc3e
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x420]
push str.SOFTWARETENCENTPLATFORM_TYPE_LIST_lu
push 0x104
mov dword [ebp - 0x43c], ebx
xor esi, esi
push eax
mov dword [ebp - 0x438], esi
call fcn.00406995
add esp, 0x10
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call fcn.00403ebe
push eax
mov ecx, ebx
call fcn.00401eb5
mov dword [ebp - 0x438], edi
mov edi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x434], VariantClear
mov dword [ebp - 0x430], reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x428]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp + edi*4 - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403ceb
lea eax, [ebp - 0x424]
mov dword [ebp - 0x42c], 1
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x424], 0x208
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
push str.TypePath
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x428]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x403ce9
cmp dword [ebp - 0x42c], 1
jne 0x403ce9
mov eax, dword [ebp - 0x424]
shr eax, 1
mov dword [ebp - 0x424], eax
mov esi, eax
je 0x403ce5
xor ecx, ecx
cmp word [ebp + eax*2 - 0x21a], cx
jne 0x403ce5
lea esi, [eax - 1]
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x403cf7
xor esi, esi
inc edi
cmp edi, 2
jb 0x403c3f
jmp 0x403d33
call fcn.00403ebe
push eax
push esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x430]
call fcn.00401ede
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00402669
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff0
call fcn.00405d50
mov eax, ebx
call fcn.0040cbe8
ret
Function at 0x405600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x41f293
call fcn.0040ccac
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40567d
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40567d
call fcn.00403077
mov esi, eax
jmp 0x405754
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4056a0
call fcn.00403077
jmp 0x405747
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x405696
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4056d0
mov esi, 0x8007000e
jmp 0x405749
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00402d8f
jmp 0x4056f6
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4056c9
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x405696
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00405421
mov esi, eax
test edi, edi
je 0x405754
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40576d
lea ecx, [ebp - 0x418]
call fcn.00403a5b
mov eax, esi
call fcn.0040cbf9
ret 0x10
Function at 0x407224
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42a074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push edi
push eax
xor edi, edi
push esi
mov dword [ebp - 0x214], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x214], edi
je 0x4072e1
test esi, esi
je 0x4072e1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x214], eax
je 0x4072e1
push dword [ebp - 0x214]
push edi
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4072e1
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0040f250
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push edi
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x210], di
je 0x4072e1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4072e1
lea eax, [ebp - 0x210]
push eax
call fcn.00406f38
pop ecx
jmp 0x4072e3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040cbc2
leave
ret 4

Function at 0x4084c4
Capabilities:
Check mutex on windows
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x42a074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x40853e
push esi
push edi
push 0x12
pop ecx
mov esi, str.6EEF1031_4E80_409D_8718_8C079ABA8ACF
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x50]
push eax
push 1
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0x40], eax
pop edi
pop esi
test eax, eax
jne 0x408510
mov eax, 0x80004005
jmp 0x408548
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40853e
push 0x3e8
push dword [ebx + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40853e
push dword [ebx + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx + 0x40], 0
jmp 0x408509
push dword [ebp + 8]
mov ecx, ebx
call fcn.00408440
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040cbc2
leave
ret 4

Function at 0x408736
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x40877a
push edi
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x4082bf
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x408777
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b569
Capabilities:
Get common file path

Disassembly:
push 0x10
mov eax, 0x41f7dd
call fcn.0040cc0a
mov esi, dword [ebp + 8]
push 0x5c
push esi
call fcn.0040fa40
pop ecx
pop ecx
test eax, eax
jne 0x40b6ef
xor ebx, ebx
cmp byte [0x42a9f0], bl
jne 0x40b61d
mov edi, 0x400
push edi
push 0x42a9f0
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x42a9f0
call fcn.0040fb70
pop ecx
pop ecx
test eax, eax
je 0x40b5bf
mov byte [eax + 1], bl
push edi
push 0x42adf0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40b5ee
cmp byte [eax + 0x42adef], 0x5c
je 0x40b5ee
mov byte [eax + 0x42adf0], 0x5c
inc eax
cmp eax, edi
jae 0x40b700
mov byte [eax + 0x42adf0], bl
push edi
push 0x42b1f0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40b61d
cmp byte [eax + 0x42b1ef], 0x5c
je 0x40b61d
mov byte [eax + 0x42b1f0], 0x5c
inc eax
cmp eax, edi
jae 0x40b700
mov byte [eax + 0x42b1f0], bl
push 0x42adf0
lea ecx, [ebp - 0x14]
call fcn.00408ff9
push esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
call fcn.004092ff
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push dword [eax]
call ebx
mov ecx, dword [ebp - 0x10]
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.00405d50
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00405d50
test edi, edi
jne 0x40b6f8
push 0x42b1f0
lea ecx, [ebp - 0x10]
call fcn.00408ff9
push esi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.004092ff
add esp, 0xc
push dword [eax]
call ebx
mov ecx, dword [ebp - 0x14]
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.00405d50
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00405d50
test edi, edi
jne 0x40b6f8
push 0x42a9f0
lea ecx, [ebp - 0x1c]
call fcn.00408ff9
push esi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
push eax
call fcn.004092ff
add esp, 0xc
push dword [eax]
call ebx
mov ecx, dword [ebp - 0x18]
mov edi, eax
add ecx, 0xfffffff0
call fcn.00405d50
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00405d50
jmp 0x40b6f8
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, edi
call fcn.0040cbd3
ret
call fcn.0040ca8f
int3