joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cca0
Capabilities:
Set file attributes

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, edx
mov ebp, ecx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004050a5
test eax, eax
je 0x40cd13
push 1
mov esi, 0x43eeb8
xor ecx, ecx
push esi
call fcn.00411341
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.00411559
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004117d3
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40cd1d
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x431965
call fcn.00431274
sub esp, 0x468
mov eax, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x14], eax
push edi
xor edi, edi
mov esi, ecx
push 0x8001
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x10], eax
call fcn.0040b329
push edi
push esi
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], edi
call fcn.0040e251
cmp dword [ebp - 0x18], edi
lea esi, [ebp - 0x224]
cmovne esi, dword [ebp - 0x18]
call fcn.004135bb
test eax, eax
lea eax, [ebp - 0x474]
je 0x40cd94
push edi
push edi
push edi
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x40cd9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov esi, eax
call dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx], 0xffffffff
jne 0x40cdf0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x40cdc7
call esi
call fcn.004050a5
test eax, eax
je 0x40ce1a
push 1
mov esi, 0x43eeb8
xor ecx, ecx
push esi
call fcn.00411341
push 0x6de7
push esi
push edi
call fcn.00411559
add esp, 0xc
jmp 0x40ce1a
mov edx, ebx
lea ecx, [ebp - 0x474]
call fcn.0040cf6e
mov ecx, ebx
test eax, eax
jne 0x40ce0c
call fcn.0040ce3a
mov edi, eax
jmp 0x40ce1a
lea edx, [ebp - 0x474]
call fcn.0040d2b6
xor edi, edi
inc edi
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
call fcn.00406a78
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40cfc9
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x40d02c
call fcn.004050a5
test eax, eax
je 0x40d034
push 1
mov esi, 0x43eeb8
xor ecx, ecx
push esi
call fcn.00411341
push 0x6de5
push esi
push ebp
call fcn.00411559
add esp, 0xc
jmp 0x40d034
cmp ebp, 0x104
jbe 0x40d038
xor eax, eax
jmp 0x40d03b
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x40d03f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0
push dword [ebp + 8]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test edi, edi
setne bl
call fcn.004050a5
test eax, eax
je 0x40d0b4
push 1
mov esi, 0x43eeb8
xor ecx, ecx
push esi
call fcn.00411341
push dword [ebp + 8]
push dword [ebp - 4]
push 0x6de6
push esi
push 0
call fcn.00411559
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40de39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov eax, esi
mov edi, ecx
shr eax, 4
movzx eax, ax
push 6
inc eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40dece
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dece
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
and esi, 0xf
jbe 0x40de7f
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x40de71
mov ebx, dword [esp + 0x10]
movzx edi, word [ecx]
test ebx, ebx
jne 0x40de8e
mov eax, edi
jmp 0x40ded0
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x40de9d
lea eax, [ecx + 2]
mov dword [ebx], eax
jmp 0x40de8a
lea eax, [edx - 1]
cmp eax, edi
cmovge eax, edi
mov edi, eax
test edi, edi
jle 0x40dec4
lea esi, [edi + edi]
push esi
lea eax, [ecx + 2]
push eax
push ebx
call fcn.0041acc0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x40de8a
cmp edx, 1
jle 0x40de8a
xor eax, eax
mov word [ebx], ax
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4105bc
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
movzx ebx, word [esi + 2]
movzx eax, word [edi + 2]
cmp bx, ax
jae 0x4105db
or eax, 0xffffffff
jmp 0x4106bf
jbe 0x4105e5
xor eax, eax
inc eax
jmp 0x4106bf
movzx edx, word [edi + 4]
push ebp
cmp edx, 6
ja 0x410674
movzx ecx, word [esi + 6]
movzx eax, word [esi + 4]
mov ebp, ecx
sub ecx, eax
lea eax, [edx + 6]
add eax, ecx
cdq
push 7
pop ecx
idiv ecx
movzx eax, word [edi + 6]
imul eax, eax, 7
inc edx
movzx ecx, dx
add eax, ecx
mov dword [esp + 0x18], eax
add eax, 0xfffffff9
mov dword [esp + 0x14], eax
cmp ebx, 2
jne 0x410655
movzx ecx, word [esi]
test cl, 3
jne 0x410655
xor edx, edx
mov dword [esp + 0x10], 0x64
mov eax, ecx
div dword [esp + 0x10]
test edx, edx
jne 0x410650
mov eax, ecx
mov ecx, 0x190
div ecx
test edx, edx
jne 0x410655
push 0xc
pop ecx
jmp 0x410657
xor ecx, ecx
push 0xfffffffffffffff2
pop edx
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax*4 + 0x43ebcc]
push 0xfffffffffffffff9
pop ebx
cmovle edx, ebx
add edx, dword [esp + 0x18]
jmp 0x41067c
movzx edx, word [edi + 6]
movzx ebp, word [esi + 6]
movzx ecx, word [edi + 8]
imul eax, edx, 0x18
add ecx, eax
movzx eax, word [edi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, bp
imul edx, ecx, 0x3c
imul ecx, eax, 0x18
movzx eax, word [esi + 8]
pop ebp
add ecx, eax
movzx eax, word [esi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, word [esi + 0xc]
imul ecx, ecx, 0x3c
add ecx, eax
xor eax, eax
cmp ecx, edx
setg al
or esi, 0xffffffff
cmp ecx, edx
cmovl eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4135c6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x3c], 0x3c
mov esi, edx
mov dword [ebp - 0x38], 0x440
push edi
mov edi, ecx
cmp dword [ebp + 0x28], ebx
je 0x4135ed
mov dword [ebp - 0x34], ebx
jmp 0x4135f6
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov dword [ebp - 0x2c], edi
cmp dword [ebp + 0x30], ecx
mov eax, 0x441598
xorps xmm0, xmm0
mov dword [ebp - 0x28], esi
cmove eax, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x413645
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
leave
ret
Function at 0x413647
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x5c]
mov esi, ecx
push 0
push eax
mov ebx, edx
mov dword [ebp - 4], esi
call fcn.0041b240
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x18]
push 0x10
xor edi, edi
push 0
inc edi
push eax
mov word [ebp - 0x2c], di
call fcn.0041b240
and dword [ebp - 0x18], 0
add esp, 0x18
call fcn.004135b1
test eax, eax
je 0x4136b3
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
mov edx, ebx
push ecx
push dword [ebp + 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
sub esp, 0x14
call fcn.004135c6
add esp, 0x2c
jmp 0x413758
push esi
call fcn.00420819
push ebx
mov esi, eax
call fcn.00420819
add esi, eax
pop ecx
pop ecx
lea eax, [esi*2 + 4]
call fcn.00430f00
mov esi, esp
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call fcn.004206a4
push 0x43dfb8
push esi
call fcn.004206c6
push ebx
push esi
call fcn.004206c6
mov esi, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
test esi, esi
je 0x41370c
cmp word [esi], bx
je 0x41370c
push esi
call fcn.00420819
pop ecx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00430f00
mov edi, esp
test esi, esi
je 0x413725
push esi
push edi
call fcn.004206a4
pop ecx
pop ecx
jmp 0x41372a
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
test esi, esi
cmovne eax, edi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 0
je 0x413758
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x3c
push ebp
push edi
push 0x1c
lea eax, [esp + 0x10]
mov ebp, edx
push 0
push eax
mov edi, ecx
call fcn.0041b240
add esp, 0xc
lea eax, [esp + 0xc]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [esp + 0x20], 0x40
je 0x41402c
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40
push dword [esp + 0x20]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0xc]
dec edi
add eax, dword [esp + 0x18]
add edi, ebp
cmp eax, edi
jae 0x414077
push 0x1c
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0041b240
add esp, 0xc
lea eax, [esp + 0x28]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40
push dword [esp + 0x3c]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebp
add esp, 0x3c
ret
Function at 0x414080
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.004140d0
push 0x28
call fcn.00419cda
add esp, 4
mov dword [esp + 8], eax
mov ecx, eax
call fcn.00413f40
mov edi, eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x24]
push 0
push ecx
mov edx, eax
mov ecx, esi
call fcn.004144f0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
mov esi, eax
call dword [edx + 0x10]
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4141c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 0xc], 0x80000000
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov eax, dword [ebx]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
mov esi, dword [esp + 0x5c]
lea ecx, [ebx + 0xc]
mov ebp, dword [esp + 0x58]
mov edx, 0xa
sub esi, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
sub ebp, edi
mov dword [esp + 0x20], esi
call fcn.00413fe0
push dword [0x448bcc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esp + 0x28]
mov dword [esp + 0x24], eax
mov ecx, ebx
call fcn.00414640
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebx]
mov ecx, ebx
mov dword [ebx + 0x24], 1
call dword [edx + 0x48]
mov edx, dword [ebx]
test eax, eax
je 0x4142b5
push ecx
mov ecx, ebx
mov dword [esp + 0x24], 0
call dword [edx + 0x24]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.0040ee19
push ecx
mov edx, 0x43c0ec
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
call fcn.0040ee19
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x54]
push eax
push dword [esp + 0x50]
push 0
push 0
push esi
mov esi, dword [esp + 0x34]
push ebp
push ecx
push edi
push dword [esp + 0x34]
mov edi, dword [esp + 0x40]
push edi
push esi
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
call fcn.00421125
push edi
call fcn.00421125
add esp, 8
jmp 0x4142ef
mov ecx, ebx
call dword [edx + 0x2c]
mov edx, dword [ebx]
mov ecx, ebx
mov edi, dword [esp + 0x14]
mov esi, eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x54]
push esi
push dword [esp + 0x50]
push 0
push 0
push dword [esp + 0x30]
push ebp
push ecx
push dword [esp + 0x6c]
push edi
push 0x43c0ec
push eax
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2c], 0
mov esi, eax
je 0x41430e
lea ecx, [esp + 0x28]
call fcn.00414680
push dword [esp + 0x24]
push dword [0x448bcc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x24
Function at 0x414b44
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x431b14
call fcn.00431274
push ecx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 8]
mov dword [edi], vtable.CPatchRes.0
call fcn.0040fa2d
xor edx, edx
lea ecx, [edi + 0xc]
mov dword [ebp - 4], edx
call fcn.0040eb4d
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], vtable.CXFile.0
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], edx
push ecx
lea ecx, [edi + 0x34]
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], edx
mov dword [edi + 0x30], edx
call fcn.0041121b
mov dword [edi + 0x34], vtable._CXErrorModule605.0
push ecx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00414c38
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8

Function at 0x414cce
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
je 0x414d55
mov eax, dword [esi + 0x10]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414d55
mov ecx, dword [eax + 0x3c]
mov edx, 0x4550
cmp word [ecx + eax], dx
jne 0x414d55
add eax, 4
xor ebx, ebx
add ecx, eax
xor ebp, ebp
mov dword [esp + 0x10], ecx
movzx eax, word [ecx + 0x10]
lea edi, [ecx + 0x14]
add edi, eax
xor eax, eax
cmp ax, word [ecx + 2]
jae 0x414d55
test ebx, ebx
jne 0x414d40
push str..rsrc
push edi
call fcn.00422616
pop ecx
pop ecx
test eax, eax
jne 0x414d2c
inc ebx
jmp 0x414d2f
add edi, 0x28
mov eax, dword [esp + 0x10]
inc ebp
movzx eax, word [eax + 2]
cmp ebp, eax
jl 0x414d14
test ebx, ebx
je 0x414d55
mov ecx, dword [edi + 0x14]
xor eax, eax
and dword [esi + 0x2c], 0
inc eax
mov dword [esi + 0x28], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x30], ecx
jmp 0x414d57
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x414ee5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x431b93
call fcn.00431274
sub esp, 0x41c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
push 0x104
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 9
push ecx
push eax
mov dword [edi + 0x50], 0x60
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x428]
xor edx, edx
push ebx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040313a
pop ecx
pop ecx
lea edx, [ebp - 0x428]
lea ecx, [edi + 0x20]
call fcn.0040fb5d
mov dword [0x44a4f4], edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push dword [edi + 4]
mov dword [edi + 0x50], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x415950
Capabilities:
Hide graphical window
Resume thread
Terminate thread

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x54]
jne 0x4159a6
push ebp
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
inc ebp
push ebp
push 0x402
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xa
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [esi + 0xc]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esi + 0x28]
mov dword [esi + 0x1c], ebp
call fcn.0040fb17
mov dword [esi + 0x2c], eax
xor ebp, ebp
cmp edi, dword [esi + 0x58]
jne 0x4159d7
cmp dword [esi + 0x1c], ebp
je 0x4159ca
push dword [esi + 0x18]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x80010001
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
push ebp
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x415a06
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
mov edi, ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [edi + 8]
xor esi, esi
movaps xmm0, xmmword [0x442770]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x4153dc
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], str.CLASS_FENATTENTETELECHARGEMENTFW
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x415a63
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80000000
jmp 0x415b90
push ebx
push 0x1e0
mov ecx, edi
call fcn.00415b94
push 0xe6
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.00415b94
lea ecx, [edi + 0x24]
mov dword [ebp - 4], eax
call fcn.0040fb17
mov edx, dword [edi]
mov ebx, 0x10000000
mov dword [edi + 0x2c], eax
test edx, edx
je 0x415aa7
push esi
push edx
mov ebx, 0x10c00000
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [edi]
lea ecx, [edi + 0x20]
call fcn.0040fb17
push esi
push dword [edi + 8]
mov ecx, 0x80000000
push esi
push edx
push dword [ebp - 4]
push dword [ebp - 8]
push ecx
push ecx
push ebx
push eax
push str.CLASS_FENATTENTETELECHARGEMENTFW
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x415b7f
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
push 0xa
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x18], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x415396
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x415b2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80000000
jmp 0x415b8f
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x415b4b
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
jne 0x415b37
cmp dword [edi], esi
je 0x415b66
push 1
push dword [edi]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 8]
push str.CLASS_FENATTENTETELECHARGEMENTFW
call dword [sym.imp.USER32.dll_UnregisterClassW]
jmp 0x415b8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or esi, 0x80000000
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x416f1a
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
push edi
mov esi, ecx
push 0xffffffffffffffec
push dword [esi + 0x1c]
call ebp
mov ecx, dword [0x44aaf8]
mov edi, eax
push 0x64
pop edx
test ecx, ecx
je 0x416f49
cmp dword [esp + 0x18], edx
jge 0x416f49
or edi, 0x80000
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongW]
xor edx, edx
cmp edi, eax
setne dl
mov dword [esp + 0x10], edx
je 0x416f75
push 0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 0xffffffffffffffec
push dword [esi + 0x1c]
call ebx
mov ecx, dword [0x44aaf8]
test ecx, ecx
je 0x416f91
imul eax, dword [esp + 0x18], 0xff
push 2
push 0x64
pop edi
cdq
idiv edi
push eax
push 0
push dword [esi + 0x1c]
call ecx
cmp dword [esp + 0x10], 0
je 0x416fca
push 0xfffffffffffffff0
pop edi
push edi
push dword [esi + 0x1c]
call ebp
and eax, 0xfdffffff
push eax
push edi
push dword [esi + 0x1c]
call ebx
push 5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [esi + 0x1c]
call ebp
or eax, 0x2000000
push eax
push edi
push dword [esi + 0x1c]
call ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x417cf6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push str.INFOEXE
mov esi, ecx
mov edi, edx
push 0x7c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x12ca
push eax
push edi
call fcn.0041acc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
inc eax
pop esi
ret
Function at 0x417e98
Capabilities:
Get common file path

Disassembly:
mov eax, 0x431df5
call fcn.00431274
sub esp, 0x444
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x24]
call fcn.0040eb4d
xor esi, esi
mov eax, ecx
mov dword [ebp - 4], esi
push dword [edi + 0x870]
push dword [edi + 0x86c]
push ecx
push 0x82
push eax
mov ecx, edi
call fcn.00418c74
test eax, eax
je 0x417fe3
lea eax, [ebp - 0x450]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x240]
push eax
push esi
push 0x44208c
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x18], vtable.CXFile.0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
push esi
push 0x10000000
push 2
push esi
push 0x40000000
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x18]
call fcn.0041323d
test eax, eax
je 0x417fdb
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.004132c6
test eax, eax
je 0x417fdb
lea ecx, [ebp - 0x18]
call fcn.00413275
push 0xc4
call fcn.00419cda
pop ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 2
lea eax, [edi + 0xadc]
push dword [edi + 0x10c0]
push dword [edi + 0x10bc]
push dword [edi + 0x10b8]
push dword [edi + 0x10b4]
push eax
lea eax, [edi + 0x8ba]
push eax
lea eax, [edi + 0xfea]
push eax
lea eax, [edi + 0xdc8]
push eax
lea eax, [edi + 0xba6]
push eax
push dword [edi + 0x880]
lea eax, [ebp - 0x240]
push eax
push dword [edi + 4]
call fcn.00415ed5
mov byte [ebp - 4], 1
mov dword [edi + 0x12f4], eax
test eax, eax
je 0x417fdb
mov ecx, eax
call fcn.004161f0
inc esi
lea ecx, [ebp - 0x18]
call fcn.004131a5
lea ecx, [ebp - 0x24]
call fcn.0040eb5e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret