joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42456e
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x570df0]
push ebp
push ebx
push edi
push esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call edi
mov esi, eax
push dword [0x571ad4]
call edi
mov edi, eax
push dword [0x571a7c]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp], 0
mov ebx, 0xfffffffc
push dword [0x571a7c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + ebx + 4]
mov dword [eax + ebx + 4], ecx
add ebx, 4
cmp ebx, 0x84
jb 0x4245cb
push eax

Function at 0x4245e5
Capabilities:
Terminate process

Disassembly:
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42466b
mov edi, eax
mov ebx, dword [0x571a78]
sbb dl, byte [edi]
mov ebp, esp
push ebp
push dword [0x571aa0]
push 0x6000
push ebx
call eax
mov ecx, dword [0x571ad8]
mov eax, dword [esi + ecx + 4]
lea ecx, [esi + ecx + 8]
mov edx, 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [ecx + edx - 4]
add esi, eax
mov dword [ebx + edx + 4], esi
add edx, 4
cmp edx, 0x5ffc
jb 0x42462b
mov eax, dword [0x571acc]
mov dword [ebx + 8], eax
push ebp
push dword [esp + 4]
push 0x6000
push ebx
call edi
mov eax, dword [0x571abc]
add eax, ebx
add eax, dword [ebx + 0xc]
add ebx, dword [0x571abc]
push ebx
call eax
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45db97
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004dc52f
call fcn.00415dad
cmp dword [eax + 0x14], 0
jne 0x45dbb4
mov ecx, esi
pop esi
jmp fcn.0045d69c
pop esi
ret

Function at 0x461226
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00416e9e
call fcn.00415dad
cmp dword [eax + 0x14], 0
jne 0x461243
mov ecx, esi
pop esi
jmp fcn.00460bf9
pop esi
ret

Function at 0x4713d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4713eb
call fcn.0041637c
mov esi, dword [eax + 0xc]
push dword [0x575d58]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x471409
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x471401
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x471436
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x471403
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004712ff
mov esi, eax
jmp 0x471428
Function at 0x4e7d37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e7d4f
mov edi, dword [esi + 0xc]
jmp 0x4e7d8f
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e7d68
call fcn.0040bb2a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e7d7d
call fcn.0040bb2a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e7d8f
call fcn.0040bb2a
call fcn.0041637c
cmp dword [eax + 0x3c], 0
je 0x4e7da4
push edi
mov ecx, ebx
call fcn.004e6bf3
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e7c51
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e7dc2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e7dce
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5010b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x570df0]
jne 0x5010c2
repz ret
jmp fcn.00507c43
Function at 0x512458
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x570df0]
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.0050766b
and dword [ebp - 0x14], 0
cmp dword [0x57871c], 0
mov dword [ebp - 0x18], eax
jne 0x51250b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5125b3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54ed28
push ebx
call edi
test eax, eax
je 0x5125b3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54ed18
push ebx
mov dword [0x57871c], eax
call edi
push eax
call esi
push 0x54ed04
push ebx
mov dword [0x578720], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x578724], eax
call edi
push eax
call esi
mov dword [0x57872c], eax
test eax, eax
je 0x51250b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x578728], eax
mov eax, dword [0x578728]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x512564
cmp dword [0x57872c], ecx
je 0x512564
push eax
call esi
push dword [0x57872c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x512564
test ebx, ebx
je 0x512564
call edi
test eax, eax
je 0x51255b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51255b
test byte [ebp - 8], 1
jne 0x512564
or dword [ebp + 0x10], 0x200000
jmp 0x512597
mov eax, dword [0x578720]
cmp eax, dword [ebp - 0x18]
je 0x512597
push eax
call esi
test eax, eax
je 0x512597
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x512597
mov eax, dword [0x578724]
cmp eax, dword [ebp - 0x18]
je 0x512597
push eax
call esi
test eax, eax
je 0x512597
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57871c]
call esi
test eax, eax
je 0x5125b3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5125b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005010b8
leave
ret
Function at 0x100194d5
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xea0
mov eax, dword [0x100400b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
jne 0x100194fb
mov eax, 0x80070057
jmp 0x1001970d
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x484]
xor ebx, ebx
push str.SoftwareMicrosoftOffice_i.0Registration
push 0x100
push eax
mov dword [esi], ebx
mov dword [ebp - 0xe9c], ebx
call fcn.1001345e
add esp, 0x10
test eax, eax
je 0x100196fd
lea eax, [ebp - 0xe9c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x484]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100196fd
push 0x40
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0xe9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push dword [ebp - 0xe9c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x103
je 0x100196fd
test edi, edi
jne 0x1001970a
push 0xffffffffffffffff
lea eax, [ebp - 0x484]
mov edi, 0x100
push eax
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.1001345e
add esp, 0x10
cmp eax, 0x50
je 0x1001970a
push 0xffffffffffffffff
push 0x100393f0
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.1001345e
add esp, 0x10
cmp eax, 0x50
je 0x1001970a
push 0xffffffffffffffff
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.1001345e
add esp, 0x10
cmp eax, 0x50
je 0x1001970a
lea eax, [ebp - 0xe94]
mov dword [ebp - 0xe98], ebx
push eax
push 1
push ebx
lea eax, [ebp - 0x284]
mov dword [ebp - 0xe94], ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x10019655
lea eax, [ebp - 0xea0]
mov dword [ebp - 0xea0], 0x802
push eax
lea eax, [ebp - 0xe90]
push eax
lea eax, [ebp - 0xe98]
push eax
push ebx
push 0x1003b278
push dword [ebp - 0xe94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 0xe94], ebx
je 0x10019669
push dword [ebp - 0xe94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x100196ce
cmp dword [ebp - 0xe98], 1
je 0x1001967f
cmp dword [ebp - 0xe98], 2
jne 0x100196ce
cmp dword [ebp - 0xe98], 2
jne 0x100196d2
push 0x104
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0xe90]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x100196d2
push 0xffffffffffffffff
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0xe90]
push 0x401
push eax
call fcn.1001345e
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x1001970a
lea eax, [ebp - 0xe90]
push str._no_more_entries_
push eax
call fcn.1001345e
pop ecx
pop ecx
test eax, eax
je 0x1001970a
xor eax, eax
cmp ax, word [ebp - 0xe90]
je 0x1001970a
lea eax, [ebp - 0xe90]
push eax
jmp 0x10019702
push str._no_more_entries_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001c65c
leave
ret 0x10
Function at 0x401496
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5d4]
mov dword [ebp - 0x30], eax
call fcn.0040148f
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5d8]
add edi, 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5dc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x2d398ec]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40151f
push 0x418248
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d398ec]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d398e8]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x2d398e8], eax
mov eax, dword [0x2d39840]
cmove eax, dword [ebp - 0x1c]
mov dword [0x2d39840], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x2d398e4], 0xf4ea3dee
call fcn.0040146c
mov ecx, dword [ebp - 0x10]
xor ecx, eax
sub ebx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4014e7
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015ef
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d398ec]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d39844]
test esi, esi
je 0x401632
cmp eax, 0x959
jne 0x40161e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.00401496
add edi, 8
dec esi
je 0x401632
mov eax, dword [0x2d398ec]
jmp 0x401605
pop edi
pop esi
ret 4
Function at 0x40d169
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
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.00405035
mov dword [ebp - 0x14], eax
cmp dword [0x43ffa0], esi
jne 0x40d25c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d33c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d33c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d33c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ffa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ffa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ffa8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ffb0], eax
test eax, eax
je 0x40d259
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ffac], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d281
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d274
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d296
push 4
pop eax
jmp 0x40d33e
cmp dword [ebp - 0x14], esi
je 0x40d296
push dword [0x43ffa0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d27b
mov eax, dword [0x43ffac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2f4
cmp dword [0x43ffb0], edi
je 0x40d2f4
push eax
call ebx
push dword [0x43ffb0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2f4
test eax, eax
je 0x40d2f4
call ecx
test eax, eax
je 0x40d2e9
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 0x40d2e9
test byte [ebp - 8], 1
jne 0x40d2f4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d324
mov eax, dword [0x43ffa4]
cmp eax, edi
je 0x40d321
push eax
call ebx
test eax, eax
je 0x40d321
call eax
mov esi, eax
test esi, esi
je 0x40d321
mov eax, dword [0x43ffa8]
cmp eax, edi
je 0x40d321
push eax
call ebx
test eax, eax
je 0x40d321
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ffa0]
call ebx
test eax, eax
je 0x40d33c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d33e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040431b
mov esp, ebp
pop ebp
ret
Function at 0x1001ec1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1001ec29
pop dword [ebp - 0x48]
mov eax, 0x9f0e20c4
sub eax, 0x8f0c349b
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xa5bf9397
add dword [ebp - 0x58], 0xa892b1b4
mov dword [ebp - 0x54], 0xf4c4a691
sub dword [ebp - 0x54], 0xc2915a4c
mov dword [ebp - 0x50], 0x60a0e1c
add dword [ebp - 0x50], 0x46423612
mov dword [ebp - 0x4c], 0x9ca0482c
add dword [ebp - 0x4c], 0x635fb7d4
lea eax, [ebp - 0x58]
push eax
mov eax, 0x19576cd7
add eax, 0xf6aa932d
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xf3d8ef42
sub dword [ebp - 0x58], 0x7f6685ec
mov dword [ebp - 0x54], 0x1707ce25
add dword [ebp - 0x54], 0x2a649350
mov dword [ebp - 0x50], 0x9e5b14f5
add dword [ebp - 0x50], 0xc5145777
mov dword [ebp - 0x4c], 0xb69c8904
sub dword [ebp - 0x4c], 0xb69c8904
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xd431f97c
add eax, 0x3bd00684
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3980a
push 0
call eax
mov ecx, 0x3ba6
mov edx, eax
mov ebx, 0x1002bc00
add ebx, dword [ebp - 0x48]
mov edi, 0xcc806b3b
sub dword [ebp - 0xc], 0x571685b9
mov esi, dword [ebx]
xor dword [ebp - 0x20], 0xade74ed
xor esi, edi
mov dword [ebp - 0x14], 0x61983621
mov dword [edx], esi
xor dword [ebp - 0x44], esi
add edx, 0x3882052b
add edx, 0xc77dfad9
add ebx, 4
loop 0x1001ed39
add eax, 0xe16b
mov ebx, eax
add eax, 0x894e1104
add eax, 0x76b1ef01
mov ecx, 0x2f88de6e
add ecx, 0xe0772192
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x405f14
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x414657
call fcn.00414470
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x405f47
mov ecx, eax
call fcn.00404059
mov ebx, eax
jmp 0x405f49
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x405f59
or esi, 0xffffffff
jmp 0x405fb6
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esi + 0x30]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004056c8
push 0xd
pop ecx
xor eax, eax
push eax
push eax
push 0x1004
push dword [esi + 4]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x48], 4
call edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 4]
mov dword [ebp - 0x28], ebx
call edi
mov esi, eax
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x405fd5
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x414669
call fcn.00414470
sub esp, 0x10
mov eax, dword [0x417020]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
push 1
push dword [esi + 4]
call edi
push 2
push dword [esi + 4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call edi
push dword [esi + 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406115
test ebx, ebx
je 0x406115
cmp dword [ebp - 0x14], 0
je 0x406115
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004058b4
test eax, eax
je 0x4060fd
push 1
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
call ebx
push 0
push dword [ebp - 0x14]
call ebx
push 1
push dword [ebp - 0x1c]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x130
push dword [esi + 4]
call edi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x406084
push 0
push eax
call ebx
push 0x138
push dword [esi + 4]
call edi
test eax, eax
je 0x406097
push 0
push eax
call ebx
push 0x131
push dword [esi + 4]
call edi
test eax, eax
je 0x4060aa
push 0
push eax
call ebx
push 0x139
push dword [esi + 4]
call edi
test eax, eax
je 0x4060bd
push 0
push eax
call ebx
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
jne 0x4060cd
push 0x1f4
jmp 0x4060d2
push 0x1f5
call fcn.0040532d
test eax, eax
je 0x406115
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x406115
lea eax, [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x34]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x406115
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
test byte [esi + 0x4c], 2
je 0x406115
push 1
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call fcn.00404493
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x406ec4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x406ef0
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406ef0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x406ef2
xor eax, eax
ret 8

Function at 0x40ae81
Capabilities:
Delete file

Disassembly:
mov eax, 0x414720
call fcn.00414470
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x4c]
test eax, eax
mov dword [ebp - 4], 2
je 0x40acfe
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40ad0c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 0x8c]
cmp dword [eax], 0
je 0x40ad1f
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40ad38
push dword [eax + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40ad46
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi + 0x78]
test eax, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x40ad56
push eax
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x40ad60
push eax
call ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40ad6d
push eax
call ebx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x40ad7a
push eax
call ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
test eax, eax
je 0x40ad91
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call ebx
mov ecx, esi
call fcn.0040959b
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.0040ac0a
lea ecx, [esi + 0x54]
call fcn.0040e32d
lea ecx, [esi + 0x24]
call fcn.00409bb5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push esi
mov esi, ecx
push 0x418994
mov dword [esi], 0x401a94
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
pop esi
jmp 0x40acd6