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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d8b0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x424084]
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
push str.LAVSplitter.ax
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00404dc0
add esp, 0xc
push str.LAVAudio.ax
lea ecx, [ebp - 0x2c]
push esi
push ecx
mov dword [ebp - 4], 0
call fcn.00404dc0
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
mov esi, dword [ebp - 0x48]
jae 0x403868
lea esi, [ebp - 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test esi, esi
je 0x40389b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40389b
push esi
call ebx
test eax, eax
je 0x40389b
push str.DllRegisterServer
push eax
call edi
test eax, eax
je 0x40389b
call eax
jmp 0x4038c9
mov esi, dword [0x4263a4]
cmp dword [esi], 2
jl 0x4038c9
push 0xff
push str.InstallXYRingTool.cpp
push 2
push ecx
mov edx, esp
mov dword [ebp - 0x4c], esp
push edx
mov ecx, str.Register_LAVSplitter.ax_Failed
call fcn.0040e050
push esi
call fcn.0040d7e0
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x4038d5
lea esi, [ebp - 0x2c]
test esi, esi
je 0x4038fc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4038fc
push esi
call ebx
test eax, eax
je 0x4038fc
push str.DllRegisterServer
push eax
call edi
test eax, eax
je 0x4038fc
call eax
jmp 0x40392a
mov esi, dword [0x4263a4]
cmp dword [esi], 2
jl 0x40392a
push 0x103
push str.InstallXYRingTool.cpp
push 2
push ecx
mov eax, esp
mov dword [ebp - 0x4c], esp
push eax
mov ecx, str.Register_LAVAudio.ax_Failed
call fcn.0040e050
push esi
call fcn.0040d7e0
cmp dword [ebp - 0x18], 8
jb 0x40393c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040ecdf
add esp, 4
xor edx, edx
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
jb 0x403962
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040ecdf
add esp, 4
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.0040ecd0
mov esp, ebp
pop ebp
ret
Function at 0x403980
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d6c4
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x424084]
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 eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], ecx
je 0x403b97
cmp dword [ecx + 0x10], 0
je 0x403b97
mov ebx, 1
test byte [0x42642c], bl
jne 0x403a04
or dword [0x42642c], ebx
mov dword [ebp - 4], 0
call fcn.00405ed0
push 0x41dcf0
call fcn.0040f394
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa0]
push eax
mov ecx, 0x42641c
call fcn.00403bf0
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0xa0]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, 8
test eax, eax
jle 0x403b51
mov esi, ebx
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x8c]
push 0x420764
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.00404dc0
add esp, 0xc
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00404fb0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x54], edi
jb 0x403a8b
mov eax, dword [ebp - 0x68]
push eax
call fcn.0040ecdf
add esp, 4
mov edx, dword [ebp - 0x90]
push 0x420764
push edx
lea eax, [ebp - 0x84]
xor ecx, ecx
push eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], cx
call fcn.00404dc0
add esp, 0xc
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00404fb0
cmp dword [ebp - 0x70], edi
jb 0x403ade
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.0040ecdf
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jae 0x403ae9
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x403af4
lea eax, [ebp - 0x4c]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x1c], edi
jb 0x403b0f
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040ecdf
add esp, 4
mov ebx, 1
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp dword [ebp - 0x38], edi
jb 0x403b3c
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0040ecdf
add esp, 4
add esi, 0x1c
sub dword [ebp - 0x88], ebx
jne 0x403a4e
mov ebx, dword [ebp - 0xa0]
test ebx, ebx
je 0x403b97
mov esi, ebx
cmp ebx, dword [ebp - 0x9c]
je 0x403b8e
nop
cmp dword [esi + 0x14], edi
jb 0x403b70
mov edx, dword [esi]
push edx
call fcn.0040ecdf
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x1c
cmp esi, dword [ebp - 0x9c]
jne 0x403b60
push ebx
call fcn.0040ecdf
add esp, 4
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.0040ecd0
mov esp, ebp
pop ebp
ret 4
Function at 0x405ed0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d3e3
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x424084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 7
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x21c], 0x4263a8
mov dword [0x4263bc], eax
mov dword [0x4263b8], esi
mov word [0x4263a8], cx
mov dword [ebp - 4], esi
xor edx, edx
mov dword [0x4263d8], eax
mov dword [0x4263d4], esi
mov word [0x4263c4], dx
mov dword [0x4263f4], eax
mov dword [0x4263f0], esi
mov word [0x4263e0], cx
mov dword [0x426414], eax
mov dword [0x426410], esi
mov word [0x426400], dx
mov dword [0x42641c], esi
mov dword [0x426420], esi
mov dword [0x426424], esi
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 5
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x21
push str.XYconfigXYRingStonesconfig.ini
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0040fc12
lea eax, [ebp - 0x218]
add esp, 0x10
lea edx, [eax + 2]
jmp 0x405fb0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405fb0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
mov esi, 0x4263a8
call fcn.00401890
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ecd0
mov esp, ebp
pop ebp
ret
Function at 0x406690
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x424084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406711
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push esi
push esi
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
neg eax
push ecx
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ecd0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040ecd0
mov esp, ebp
pop ebp
ret

Function at 0x406730
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d876
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x424084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
push eax
xor edi, edi
push edi
push edi
push 0x8005
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406796
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00401890
push 0x2b
mov eax, str.XYLogXYRingToolSetupXYRingToolSetup.log
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00404050
mov eax, dword [ebp - 0x234]
mov edi, 8
cmp dword [ebp - 0x220], edi
jae 0x4067dd
mov eax, esi
mov edx, dword [0x4263a4]
push eax
push edx
call fcn.0040ce30
mov eax, dword [0x4263a4]
mov dword [eax], 5
mov eax, dword [0x4263a4]
cmp dword [eax], 4
mov esi, eax
jl 0x406824
push 0x32
push str.XYRingToolSetup.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x254], esp
push ecx
mov ecx, 0x420c80
call fcn.0040e050
push esi
call fcn.0040d7e0
lea ecx, [ebp - 0x250]
call fcn.004065b0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], edi
jb 0x40683a
mov eax, dword [eax]
push eax
mov ecx, 0x33
push str.Hr_g
push 0x4263a4
mov edx, str.XYRingToolSetup.cpp
lea esi, [ecx - 0x2f]
call fcn.0040cda0
add esp, 0xc
cmp dword [ebp - 0x23c], edi
jb 0x406871
mov edx, dword [ebp - 0x250]
push edx
call fcn.0040ecdf
add esp, 4
cmp dword [ebp - 0x220], edi
jb 0x406888
mov eax, dword [ebp - 0x234]
push eax
call fcn.0040ecdf
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ecd0
mov esp, ebp
pop ebp
ret
Function at 0x4068b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call fcn.00406690
call fcn.00406730
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406908
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x24], 0
je 0x406994
push 0x10
push 0x420de0
push 0x420dec
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x4263a4]
cmp dword [eax], 1
mov esi, eax
jl 0x406957
push 0x59
push str.XYRingToolSetup.cpp
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push ecx
mov ecx, 0x420e18
call fcn.0040e050
push esi
call fcn.0040d7e0
mov eax, dword [0x4263a4]
cmp dword [eax], 4
mov esi, eax
jl 0x40697e
push 0x3a
push str.XYRingToolSetup.cpp
push 4
push ecx
mov edx, esp
mov dword [ebp - 0x24], esp
push edx
mov ecx, str.XYRingToolSetup
call fcn.0040e050
push esi
call fcn.0040d7e0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ecd0
mov esp, ebp
pop ebp
ret 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x406a01
mov eax, dword [0x4263a4]
cmp dword [eax], 1
mov esi, eax
jl 0x4069d1
push 0x62
push str.XYRingToolSetup.cpp
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
mov ecx, str.CoInitialize_Failed
call fcn.0040e050
push esi
call fcn.0040d7e0
mov eax, dword [0x4263a4]
cmp dword [eax], 4
mov esi, eax
jl 0x406ac3
push 0x3a
push str.XYRingToolSetup.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push ecx
mov ecx, str.XYRingToolSetup
call fcn.0040e050
push esi
call fcn.0040d7e0
jmp 0x406ac3
lea ecx, [ebp - 0x20]
call fcn.004065b0
call fcn.00402750
lea edx, [ebp - 0x20]
push edx
call fcn.004027f0
test al, al
jne 0x406a5b
push 0
push 0x420e5c
push 0x420e64
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x4263a4]
cmp dword [eax], 1
mov esi, eax
jl 0x406a5b
push 0x6c
push str.XYRingToolSetup.cpp
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
mov ecx, str.install_ringtool_failed.
call fcn.0040e050
push esi
call fcn.0040d7e0
call edi
sub eax, ebx
push eax
mov ecx, 0x74
push 0x420ec4
push 0x4263a4
mov edx, str.XYRingToolSetup.cpp
lea esi, [ecx - 0x70]
call fcn.0040cda0
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x4263a4]
cmp dword [eax], 4
mov esi, eax
jl 0x406ab1
push 0x3a
push str.XYRingToolSetup.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push ecx
mov ecx, str.XYRingToolSetup
call fcn.0040e050
push esi
call fcn.0040d7e0
cmp dword [ebp - 0xc], 8
jb 0x406ac3
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040ecdf
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040ecd0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x4075bf
mov dword [edi], 0
jmp 0x407580
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40758f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4075c7
test ecx, ecx
je 0x4075bf
test esi, esi
jne 0x407580
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407760
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4275a0], ecx
inc edx
cmp edx, 0x100
jb 0x407763
cmp edx, 0x800
jae 0x407839
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x4271a0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4275a0]
inc edx
mov dword [edx*4 + 0x42759c], eax
cmp edx, 0x800
jb 0x407810
mov dword [0x426390], 0x40a030
call fcn.0040a1b0
test eax, eax
jne 0x407856
mov dword [0x426390], 0x40a0e0
pop ecx
ret
Function at 0x40b100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x40b122
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x40b150
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40b150
inc edi
cmp edi, edx
jb 0x40b141
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x40b257
cmp eax, 3
jbe 0x40b187
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x40b1c4
cmp al, 0xff
je 0x40b1c4
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x40b135
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x40b16b
movzx eax, byte [esi + 0x420f8c]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x420f84], 0
mov al, byte [ecx + 4]
je 0x40b1b0
test al, al
je 0x40b1b0
cmp al, 0xff
jne 0x40b16b
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x40b135
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x40b227
movzx edx, byte [esi + 0x420f8c]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x40b20e
cmp cl, 0xff
jne 0x40b224
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x40b1e2
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x40b135
cmp eax, 3
jbe 0x40b26c
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e9d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x42634c
call fcn.00418858
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x40ea84
test esi, esi
jne 0x40ea84
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x40ea68
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ea62
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ea62
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x40ea51
cmp esi, eax
jae 0x40ea55
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40ea43
cmp esi, eax
jb 0x40ea59
xor eax, eax
jmp 0x40ea62
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40ea8d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x42634c
call fcn.00418858
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x40e9f5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40eb70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40eb88
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ebba
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40ebb6
cmp esi, eax
jae 0x40ebba
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40eba8
cmp esi, eax
jb 0x40ebc0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x40ecd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424084]
jne 0x40ecda
repz ret
jmp fcn.00410247

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40f886
call fcn.00410cc4
mov dword [eax], esi
call fcn.00410cb1
push 0x16
pop esi
mov dword [eax], esi
call fcn.004110b0
mov eax, esi
jmp 0x40f8db
test dword [ebp + 0xc], 0xfffffff9
jne 0x40f86c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f8b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410cd7
pop ecx
call fcn.00410cb1
mov eax, dword [eax]
jmp 0x40f8db
test al, 0x10
jne 0x40f8d9
test al, 1
je 0x40f8d9
test byte [ebp + 0xc], 2
je 0x40f8d9
call fcn.00410cc4
mov dword [eax], 5
call fcn.00410cb1
mov dword [eax], 0xd
jmp 0x40f8aa
xor eax, eax
pop esi
pop ebp
ret
Function at 0x415aec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411add
and dword [ebp - 0x14], 0
cmp dword [0x4262cc], 0
mov dword [ebp - 0x18], eax
jne 0x415b9f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x415c47
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f9c4
push ebx
call edi
test eax, eax
je 0x415c47
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4262cc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4262d0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4262d4], eax
call edi
push eax
call esi
mov dword [0x4262dc], eax
test eax, eax
je 0x415b9f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4262d8], eax
mov eax, dword [0x4262d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x415bf8
cmp dword [0x4262dc], ecx
je 0x415bf8
push eax
call esi
push dword [0x4262dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x415bf8
test ebx, ebx
je 0x415bf8
call edi
test eax, eax
je 0x415bef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415bef
test byte [ebp - 8], 1
jne 0x415bf8
or dword [ebp + 0x10], 0x200000
jmp 0x415c2b
mov eax, dword [0x4262d0]
cmp eax, dword [ebp - 0x18]
je 0x415c2b
push eax
call esi
test eax, eax
je 0x415c2b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x415c2b
mov eax, dword [0x4262d4]
cmp eax, dword [ebp - 0x18]
je 0x415c2b
push eax
call esi
test eax, eax
je 0x415c2b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4262cc]
call esi
test eax, eax
je 0x415c47
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x415c49
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ecd0
leave
ret