joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ab8
Capabilities:
Get disk size

Disassembly:
xor eax, eax
push eax
push eax
push eax
call fcn.00429ae0
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00412000
push edx
call fcn.00429940
pop edx
push eax
push edx
call fcn.00429940
pop edx
push eax
mov eax, 0x4b7554
push eax
mov eax, 0x4b72bc
push eax
push dword [esp + 0x10]
call fcn.004278e0
lea eax, [esp + 4]
push eax
call fcn.004299b0
push edx
call fcn.00429940
pop edx
push eax
push edx
call fcn.00429940
pop edx
push eax
push 2
push edx
call fcn.00429940
pop edx
push eax
push edx
call fcn.00429940
pop edx
push eax
push 3
push dword [esp + 0x18]
call fcn.00427a90
call fcn.00412362
add dword [esp], edx
call fcn.00427a10
call fcn.00429980
mov edx, 0x4b8eba
pop ecx
push ecx
call fcn.00412300
mov ecx, eax
call fcn.00412310
je 0x402b7f
push edx
call fcn.00429940
pop edx
push eax
push edx
call fcn.00429940
pop edx
push eax
push 3
push dword [esp + 0xc]
call fcn.00427a90
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 0
push 0
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
and eax, eax
je 0x402ba0
xor eax, eax
jmp 0x402ba5
mov eax, 1
and eax, eax
je 0x402bb5
mov edx, 0xffffffff
mov eax, 0xffffffff
jmp 0x402bc4
lea eax, [esp + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x402bc4
push edx
push dword [esp + 4]
call fcn.00429b40
pop edx
add esp, 0xc
ret 4
Function at 0x403653
Capabilities:
Create directory

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.00429ae0
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00412000
mov dword [esp + 4], 0
push dword [esp]
push 0
call sub.SHELL32.DLL_SHCreateDirectory
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x403690
mov dword [esp + 8], 1
jmp 0x4036b6
mov ebx, 0x50
cmp ebx, dword [esp]
jne 0x4036a4
mov dword [esp + 8], 1
jmp 0x4036b6
mov ebx, 0xb7
cmp ebx, dword [esp]
jne 0x4036b6
mov dword [esp + 8], 1
pop eax
mov eax, dword [esp + 4]
jmp 0x4036bf
push dword [esp]
call fcn.00429b40
add esp, 8
pop ebx
ret 4

Function at 0x4036ce
Capabilities:
Shutdown system

Disassembly:
push ebp
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4036d5
call fcn.00429ae0
lea eax, [esp]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
and eax, eax
je 0x403703
xor eax, eax
jmp 0x403708
mov eax, 1
and eax, eax
je 0x403713
xor eax, eax
jmp 0x40379b
lea ebp, [esp + 4]
push ebp
pop ebp
lea eax, [ebp + 4]
push eax
mov eax, str.SeShutdownPrivilege
push eax
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueW
lea ebp, [esp + 4]
mov dword [ebp], 1
mov dword [ebp + 0xc], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, ebx
je 0x403770
xor eax, eax
jmp 0x40379b
push dword [esp + 0x34]
push dword [esp + 0x34]
call sub.USER32.DLL_ExitWindowsEx
and eax, eax
je 0x403785
xor eax, eax
jmp 0x40378a
mov eax, 1
and eax, eax
je 0x403792
xor eax, eax
jmp 0x40379b
mov eax, 1
jmp 0x40379b
add esp, 0x24
pop ebx
pop ebp
ret 8
Function at 0x40393d
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
mov edx, 0x10f
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403944
call fcn.00429ae0
push dword [esp + 0x450]
call fcn.00412380
mov edx, dword [esp + 0x448]
lea ecx, [esp]
call fcn.00412000
call sub.USER32.DLL_GetActiveWindow
push eax
lea ebp, [esp + 8]
pop eax
mov dword [ebp], eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x450]
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push dword [esp + 0x24]
lea ebp, [esp + 8]
pop eax
mov dword [ebp + 4], eax
lea eax, [esp + 0x2c]
push eax
pop eax
mov dword [ebp + 8], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], 0x41
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
lea eax, [esp + 4]
push eax
call sub.SHELL32.DLL_SHBrowseForFolderW
mov dword [esp + 0x28], eax
push dword [esp + 0x24]
call sub.OLE32.DLL_CoTaskMemFree
mov ebx, dword [esp + 0x28]
and ebx, ebx
jne 0x403a0c
mov edx, 0x4b7024
push edx
call fcn.00429940
pop edx
push eax
push edx
call fcn.00429a40
pop eax
push eax
call fcn.00412350
pop edx
add eax, edx
jmp 0x403a7f
lea eax, [esp + 0x234]
push eax
push dword [esp + 0x2c]
call sub.SHELL32.DLL_SHGetPathFromIDListW
and eax, eax
je 0x403a25
xor eax, eax
jmp 0x403a2a
mov eax, 1
and eax, eax
je 0x403a46
lea eax, [esp + 0x234]
mov edx, 0x4b7024
push edx
push 0x104
push eax
call fcn.00429bb0
push dword [esp + 0x28]
call sub.OLE32.DLL_CoTaskMemFree
lea edx, [esp + 0x234]
push edx
call fcn.00429940
pop edx
push eax
push 0x104
push edx
call fcn.00429be0
pop eax
push eax
call fcn.00412350
pop edx
add eax, edx
jmp 0x403a7f
push dword [esp]
call fcn.00429b40
add esp, 0x43c
pop ebx
pop ebp
ret 8
Function at 0x4086d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.00429ae0
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00412000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00412000
mov dword [esp + 0xc], 0x20019
cmp dword [esp + 0x30], 0
je 0x408719
mov ebx, dword [esp + 0xc]
or ebx, 0x100
mov dword [esp + 0xc], ebx
push edx
call fcn.00429940
pop edx
push eax
push edx
call fcn.00429940
pop edx
push eax
push 1
push dword [esp + 0xc]
call fcn.00427a90
call fcn.00429980
mov edx, 0x4b7554
pop ecx
push ecx
call fcn.00412300
mov ecx, eax
call fcn.00412310
je 0x408781
push edx
call fcn.00429940
pop edx
push eax
push edx
call fcn.00429940
pop edx
push eax
push dword [esp + 8]
call fcn.00427900
mov ebx, eax
dec ebx
push ebx
push dword [esp + 0xc]
call fcn.00427a10
lea eax, [esp + 4]
push eax
call fcn.004299b0
push edx
call fcn.00429940
pop edx
push eax
push edx
call fcn.00429940
pop edx
push eax
push 1
push dword [esp + 0xc]
call fcn.00427a10
call fcn.00429980
mov edx, 0x4b7554
pop ecx
push ecx
call fcn.00412300
mov ecx, eax
call fcn.00412310
je 0x4087e9
push edx
call fcn.00429940
pop edx
push eax
push edx
call fcn.00429940
pop edx
push eax
push dword [esp + 8]
call fcn.00427900
mov ebx, eax
dec ebx
push ebx
push dword [esp + 0xc]
call fcn.00427a90
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov ebx, dword [esp + 0x34]
and ebx, ebx
je 0x408804
push 0x4ba00c
push 0x24
push dword [esp + 0x3c]
call fcn.00428ac0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push 0
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x408870
mov ebx, dword [esp + 0x34]
and ebx, ebx
je 0x40885c
push dword [esp + 8]
mov ebp, dword [esp + 0x38]
pop eax
mov dword [ebp + 8], eax
push edx
call fcn.00429940
pop edx
push eax
push dword [esp + 0xc]
call fcn.004088fc
mov ebp, dword [esp + 0x38]
lea eax, [ebp + 0xc]
push eax
call fcn.004299b0
cmp dword [esp + 0x10], 0
je 0x40886c
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
jmp 0x4088e3
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegQueryValueExW
mov dword [esp + 8], eax
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
cmp dword [esp + 8], 0
je 0x4088db
mov ebx, dword [esp + 0x34]
and ebx, ebx
je 0x4088d7
push dword [esp + 8]
mov ebp, dword [esp + 0x38]
pop eax
mov dword [ebp + 8], eax
push edx
call fcn.00429940
pop edx
push eax
push dword [esp + 0xc]
call fcn.004088fc
mov ebp, dword [esp + 0x38]
lea eax, [ebp + 0xc]
push eax
call fcn.004299b0
xor eax, eax
jmp 0x4088e3
mov eax, dword [esp + 0x14]
jmp 0x4088e3
push dword [esp]
call fcn.00429b40
push dword [esp + 4]
call fcn.00429b40
add esp, 0x18
pop ebx
pop ebp
ret 0x14
Function at 0x40f107
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40f10d
call fcn.00429ae0
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00412000
mov edx, dword [esp + 0x38]
lea ecx, [esp + 4]
call fcn.00412000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 8]
call fcn.00412000
mov dword [esp + 0x28], 0x1000
push dword [esp]
call sub.KERNEL32.dll_LoadLibraryW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x40f168
xor eax, eax
jmp 0x40f285
push 0xa
push dword [esp + 8]
push dword [esp + 0x14]
call sub.KERNEL32.dll_FindResourceW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x40f196
push dword [esp + 0xc]
call sub.KERNEL32.dll_FreeLibrary
xor eax, eax
jmp 0x40f285
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x40f1bf
push dword [esp + 0xc]
call sub.KERNEL32.dll_FreeLibrary
xor eax, eax
jmp 0x40f285
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [esp + 0x1c], eax
push dword [esp + 0x14]
call sub.KERNEL32.dll_LockResource
mov dword [esp + 0x18], eax
cmp dword [esp + 0x40], 0
je 0x40f1fd
push 0x100000
push dword [esp + 0xc]
push 0xffffffff
call fcn.0041e860
mov dword [esp + 0x24], eax
jmp 0x40f20f
push dword [esp + 8]
push 0xffffffff
call fcn.0041e790
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
je 0x40f266
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.0041eea0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x2c]
call fcn.0041ea00
and eax, eax
je 0x40f23c
xor eax, eax
jmp 0x40f241
mov eax, 1
and eax, eax
je 0x40f25b
push dword [esp + 0x24]
call fcn.0041e4b0
push dword [esp + 0xc]
call sub.KERNEL32.dll_FreeLibrary
xor eax, eax
jmp 0x40f285
push dword [esp + 0x24]
call fcn.0041e4b0
jmp 0x40f273
push dword [esp + 0xc]
call sub.KERNEL32.dll_FreeLibrary
xor eax, eax
jmp 0x40f285
push dword [esp + 0xc]
call sub.KERNEL32.dll_FreeLibrary
mov eax, 1
jmp 0x40f285
push dword [esp + 8]
call fcn.00429b40
push dword [esp]
call fcn.00429b40
push dword [esp + 4]
call fcn.00429b40
add esp, 0x2c
pop ebx
ret 0x10

Function at 0x410d1f
Capabilities:
Check mutex on windows

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.00429ae0
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00412000
push dword [esp]
push 1
push 0
call sub.KERNEL32.dll_CreateMutexW
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
and ebx, ebx
je 0x410d69
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
jne 0x410d69
mov eax, 1
jmp 0x410d6b
xor eax, eax
and eax, eax
je 0x410d81
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
jmp 0x410d87
xor eax, eax
jmp 0x410d87
push dword [esp]
call fcn.00429b40
add esp, 8
pop ebx
ret 4
Function at 0x4111c5
Capabilities:
Get file system object information

Disassembly:
push ebp
push ebx
mov edx, 0xae
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4111cc
call fcn.00429ae0
mov edx, dword [esp + 0x2c4]
lea ecx, [esp]
call fcn.00412000
push 0x110
push 0x2b4
lea eax, [esp + 0xc]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
call sub.SHELL32.DLL_SHGetFileInfoW
lea ebp, [esp + 4]
mov eax, dword [ebp]
jmp 0x411216
push dword [esp]
call fcn.00429b40
add esp, 0x2b8
pop ebx
pop ebp
ret 4
Function at 0x411229
Capabilities:
Get file system object information

Disassembly:
push ebp
push ebx
push edi
mov edx, 0xb4
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x411231
call fcn.00429ae0
mov edx, dword [esp + 0x2e0]
lea ecx, [esp]
call fcn.00412000
push dword [esp]
call fcn.0041e2f4
push edx
push eax
pop ebx
pop edi
cmp edi, 0
jl 0x41126e
jg 0x41126a
cmp ebx, 0
jb 0x41126e
xor eax, eax
jmp 0x411273
mov eax, 1
or eax, eax
je 0x41127e
xor eax, eax
jmp 0x411511
push dword [esp + 0x2e4]
mov ebx, 1
cmp ebx, dword [esp]
jg 0x4112a9
mov ebx, 0x10
cmp ebx, dword [esp]
jl 0x4112a9
mov dword [esp + 0x2c8], 1
jmp 0x41132f
mov ebx, 0x11
cmp ebx, dword [esp]
jg 0x4112ca
mov ebx, 0x20
cmp ebx, dword [esp]
jl 0x4112ca
mov dword [esp + 0x2c8], 0
jmp 0x41132f
mov ebx, 0x21
cmp ebx, dword [esp]
jg 0x4112eb
mov ebx, 0x30
cmp ebx, dword [esp]
jl 0x4112eb
mov dword [esp + 0x2c8], 2
jmp 0x41132f
mov ebx, 0x31
cmp ebx, dword [esp]
jg 0x411325
mov ebx, 0x2000
cmp ebx, dword [esp]
jl 0x411325
call fcn.0041c83f
mov ebx, eax
cmp ebx, 0x46
jl 0x411318
mov dword [esp + 0x2c8], 4
jmp 0x411323
mov dword [esp + 0x2c8], 2
jmp 0x41132f
xor eax, eax
add esp, 4
jmp 0x411511
pop eax
push 0x4000
push 0x2b4
lea eax, [esp + 0xc]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
call sub.SHELL32.DLL_SHGetFileInfoW
lea eax, [esp + 0x2b8]
push eax
mov ebp, 0x4ba220
push ebp
push dword [esp + 0x2cc]
call fcn.00411525
mov ebx, eax
and ebx, ebx
jne 0x411506
lea eax, [esp + 0x2bc]
push eax
push 1
lea ebp, [esp + 0xc]
push dword [ebp + 4]
mov eax, dword [esp + 0x2c4]
push eax
mov eax, dword [eax]
call dword [eax + 0x28]
cmp dword [esp + 0x2bc], 0
je 0x411506
push 0xffffffff
push 0x20
push dword [esp + 0x2ec]
push dword [esp + 0x2f0]
push 0xffffffff
call fcn.00422909
mov dword [esp + 0x2c0], eax
cmp dword [esp + 0x2c0], 0
je 0x411506
push dword [esp + 0x2c0]
call fcn.00422724
push eax
call fcn.00422137
and eax, eax
je 0x411506
cmp dword [esp + 0x2e8], 0
je 0x411425
push dword [esp + 0x2e4]
push dword [esp + 0x2e8]
push 0
push 0
push dword [esp + 0x2cc]
call fcn.00422279
jmp 0x4114f5
lea eax, [esp + 0x2cc]
push eax
lea eax, [esp + 0x2cc]
push eax
mov eax, dword [esp + 0x2c0]
push eax
mov eax, dword [eax]
call dword [eax + 0x40]
mov ebx, dword [esp + 0x2e4]
cmp ebx, dword [esp + 0x2c8]
jl 0x411464
mov ebx, dword [esp + 0x2e4]
cmp ebx, dword [esp + 0x2cc]
jl 0x411464
jmp 0x41146b
mov eax, 1
jmp 0x41146d
xor eax, eax
and eax, eax
je 0x411497
push dword [esp + 0x2e4]
push dword [esp + 0x2e8]
push 0
push 0
push dword [esp + 0x2cc]
call fcn.00422279
jmp 0x4114f5
mov ebx, dword [esp + 0x2e4]
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, eax
mov edi, dword [esp + 0x2cc]
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
sub ebx, edi
push ebx
mov ebx, dword [esp + 0x2e8]
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, eax
mov edi, dword [esp + 0x2cc]
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
sub ebx, edi
push ebx
push dword [esp + 0x2c4]
call fcn.004222bb
push dword [esp + 0x2bc]
call sub.USER32.DLL_DestroyIcon
call fcn.004221c4
mov eax, dword [esp + 0x2c0]
jmp 0x411511
push dword [esp]
call fcn.00429b40
add esp, 0x2d0
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x412ba8
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x412c40
push edi
push 0x4c64e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4c5210]
test edi, edi
je 0x412c14
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x412c0d
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4c5210
call fcn.00429834
pop ecx
pop ecx
jmp 0x412c0f
mov edi, dword [edi]
test edi, edi
jne 0x412be4
pop ebx
mov eax, dword [0x4c1a1c]
mov esi, eax
inc eax
push 0x10
push 0x4c5210
mov dword [0x4c1a1c], eax
call fcn.00429874
pop ecx
pop ecx
push 0x4c64e4
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x412fe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x30]
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4130c0
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [esp + 0x20], 1
mov ebp, eax
je 0x413078
push esi
push esi
push esi
push dword [esp + 0x28]
call fcn.004135c7
mov esi, eax
test esi, esi
je 0x4130b8
push dword [esp + 0x18]
push dword [0x4c5214]
call fcn.004290b7
mov ebp, eax
mov eax, 0x10000
push eax
push esi
mov dword [ebp + 0x18], eax
call fcn.004136c1
push eax
push esi
call fcn.004136a7
push eax
call fcn.004133b3
mov dword [ebp], eax
test eax, eax
je 0x413070
mov dword [ebp + 0x14], esi
mov ebx, ebp
jmp 0x4130b8
push esi
call fcn.0041369a
jmp 0x4130b8
push ebp
push esi
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4130b8
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
push dword [esp + 0x20]
call fcn.00412c48
push esi
push 0
push dword [0x4c4fd4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0xc
Function at 0x413150
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x4c5214]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.00429078
mov esi, eax
test esi, esi
je 0x4132e5
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x4131fa
push ebx
call fcn.004134c0
jmp 0x413192
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x41318a
push dword [esi + 0x14]
call fcn.004136ce
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.004130db
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x4132ff
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4131d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x4131e8
push dword [esp + 0x20]
push ebx
call fcn.00413594
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x41329a
test byte [esp + 0x1c], 1
je 0x413209
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x4132a4
push esi
call fcn.00412f77
lea eax, [esi + 4]
push 0x10
push eax
call fcn.00429874
pop ecx
pop ecx
mov ecx, dword [0x4c5224]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x4132e5
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x413285
push edi
push dword [esp + 0x24]
push ebx
call fcn.004134f4
jmp 0x413292
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x4132e5
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x4132c6
push dword [esp + 0x20]
push ebx
call fcn.00413594
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x4132e5
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4139ce
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x413a23
push dword [esp + 0x10]
push 0x41394d
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4c5254]
test esi, esi
je 0x413a7c
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x413a1b
cmp byte [esi + 0x10], 0
je 0x413a1b
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4139f7
jmp 0x413a7c
mov esi, dword [0x4c5254]
test esi, esi
je 0x413a7c
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x413a75
cmp byte [esi + 0x11], 0
je 0x413a51
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x413a68
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x4c5254
call fcn.00429834
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x413a30
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x415229
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x415288
cmp word [esi], di
je 0x415288
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00442e30
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004430e0
add esp, 0x10
test eax, eax
jne 0x415287
push 0x24
push 8
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x415721
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x10], esi
call fcn.00492990
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
push esi
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x415820
push ebx
mov ebx, dword [esp + 0x30]
lea eax, [edi + 0x18]
push esi
push dword [ebx + 0x18]
push eax
push ebp
push edi
push dword [esp + 0x48]
call fcn.00415c10
mov esi, eax
add esp, 0x18
test esi, esi
je 0x415784
cmp esi, edi
jge 0x415784
mov dword [esp + 0x34], ebp
jmp 0x415786
mov esi, edi
push dword [esp + 0x14]
call sub.MSVCRT.dll_strlen
mov word [esp + 0x2c], ax
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [esp + 0x1c], eax
mov eax, esi
pop ecx
mov dword [esp + 0x1c], edx
cdq
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
push 0x12
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edx
push eax
push dword [ebx]
call edi
cmp dword [esp + 0x3c], 0x12
jne 0x415805
push 0
lea eax, [esp + 0x40]
push eax
movsx eax, word [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [ebx]
call edi
movsx eax, word [esp + 0x28]
cmp eax, dword [esp + 0x3c]
jne 0x415805
push 0
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x40]
push dword [ebx]
call edi
cmp esi, dword [esp + 0x3c]
jne 0x415805
xor esi, esi
inc esi
jmp 0x415809
mov esi, dword [esp + 0x10]
push ebx
call fcn.00415e2a
pop ecx
push ebp
push 0
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
push dword [esp + 0x10]
call fcn.00492980
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret 0x10