joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d9f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
or ebp, 0xffffffff
jmp 0x44da12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44da19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44da08
mov eax, 1
add ebx, ebx
jne 0x44da2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44da20
jne 0x44da3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44da20
xor ecx, ecx
sub eax, 3
jb 0x44da50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44dac2
mov ebp, eax
add ebx, ebx
jne 0x44da5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x44da68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x44da8c
inc ecx
add ebx, ebx
jne 0x44da78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44da6d
jne 0x44da89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44da6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44daac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44da9d
jmp 0x44da0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44daac
add edi, ecx
jmp 0x44da0e
pop esi
lea edi, [esi + 0x48000]
mov ecx, 0xa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44dace
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x44dad3
lea edi, [esi + 0x4a000]
mov eax, dword [edi]
or eax, eax
je 0x44db3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d218]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44daf9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4d220]
or eax, eax
je 0x44db35
mov dword [ebx], eax
add ebx, 4
jmp 0x44db16
call dword [esi + 0x4d21c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x44db6c
cmp al, 0xef
ja 0x44db5f
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x44db41
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x44db4e
mov ebp, dword [esi + 0x4d224]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44dba0
sub esp, 0xffffff80
jmp 0x411c66
Function at 0x407c60
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x620
mov eax, dword [0x44cc30]
xor eax, esp
mov dword [esp + 0x61c], eax
push esi
push 0x30b
lea eax, [esp + 0xc]
push eax
mov esi, ecx
push 0
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407d71
push edi
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push 0x80000000
lea edx, [esp + 0x24]
push edx
mov word [esp + 0x63e], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407d70
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi + 4], eax
jle 0x407cd6
mov dword [esi + 4], eax
cmp dword [esi + 8], eax
jle 0x407cde
mov dword [esi + 8], eax
mov ecx, dword [esi + 8]
xor eax, eax
cmp byte [esi], al
setne al
dec eax
and eax, 2
push eax
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x407d70
cmp byte [esi + 0xc], 0
mov eax, dword [esi + 4]
je 0x407d06
inc eax
push eax
call fcn.00426550
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x407d70
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0xc]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407d60
mov edx, dword [esp + 8]
cmp edx, dword [esi + 4]
jne 0x407d60
mov eax, dword [esi + 0x10]
push eax
call fcn.004271ba
add esp, 4
pop edi
mov dword [esi + 0x10], 0
pop esi
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.004271ab
add esp, 0x620
ret
cmp byte [esi + 0xc], 0
je 0x407d70
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
mov byte [ecx + edx], 0
pop edi
mov ecx, dword [esp + 0x620]
pop esi
xor ecx, esp
call fcn.004271ab
add esp, 0x620
ret

Function at 0x407d90
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407dd3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
ret 8

Function at 0x407eb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x44cc30]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x44c4b4], 0
je 0x407f1c
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.00427c20
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov byte [0x44c4b4], 0
setae al
mov byte [0x44df64], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004271ab
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov al, byte [0x44df64]
xor ecx, esp
call fcn.004271ab
add esp, 0x118
ret
Function at 0x408140
Capabilities:
Parse credit card information

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x14]
xor esi, esi
test eax, eax
jbe 0x4081e3
push ebx
push ebp
lea ebx, [edi + 4]
lea ebp, [esi + 8]
cmp esi, eax
jbe 0x408164
call fcn.00426db5
cmp dword [edi + 0x18], ebp
jb 0x40816d
mov eax, dword [ebx]
jmp 0x40816f
mov eax, ebx
movzx eax, word [eax + esi*2]
cmp ax, 0x5c
je 0x4081bb
cmp ax, 0x2f
je 0x4081bb
cmp ax, 0x3a
je 0x4081bb
cmp ax, 0x2a
je 0x4081bb
cmp ax, 0x3f
je 0x4081bb
cmp ax, 0x22
je 0x4081bb
cmp ax, 0x27
je 0x4081bb
cmp ax, 0x3c
je 0x4081bb
cmp ax, 0x3e
je 0x4081bb
cmp ax, 0x7c
je 0x4081bb
cmp ax, 0x25
je 0x4081bb
cmp ax, 0x3d
jne 0x4081d9
cmp esi, dword [edi + 0x14]
jbe 0x4081c5
call fcn.00426db5
cmp dword [edi + 0x18], ebp
jb 0x4081ce
mov eax, dword [ebx]
jmp 0x4081d0
mov eax, ebx
mov ecx, 0x5f
mov word [eax + esi*2], cx
mov eax, dword [edi + 0x14]
inc esi
cmp esi, eax
jb 0x408164
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x408540
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
je 0x4085e8
mov ecx, dword [esp + 0xc]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4085e7
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00426550
mov edi, eax
add esp, 4
test edi, edi
je 0x4085de
push 0
lea edx, [esp + 0x20]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4085d5
cmp esi, dword [esp + 0x1c]
jne 0x4085d5
push ebp
push esi
push edi
call fcn.004082b0
add esp, 0xc
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.004271ba
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x408830
Capabilities:
Create process on windows
Move file

Disassembly:
sub esp, 0x60
mov eax, dword [0x44cc30]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor bl, bl
push eax
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [eax + 0x105]
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426550
mov edi, eax
add esp, 4
test edi, edi
je 0x4089c8
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426550
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4089bf
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
push edi
call ebx
mov ecx, dword [esi]
push ecx
push ebp
call ebx
push str..exe
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
mov edx, dword [esi]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esi + 0x14]
push eax
push edi
lea ecx, [esp + 0x1b]
call fcn.00407d90
test al, al
je 0x4089b2
push str.runas
lea ecx, [esp + 0x54]
call fcn.004087c0
push 0x38
xor ebx, ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00427c20
add esp, 0xc
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x1c], ebx
cmp byte [esi + 0x10], bl
je 0x408927
mov dword [esp + 0x20], ebx
jmp 0x408940
cmp dword [esp + 0x68], 8
jb 0x408938
mov edx, dword [esp + 0x54]
mov dword [esp + 0x20], edx
jmp 0x408940
lea eax, [esp + 0x54]
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 4]
xor edx, edx
cmp byte [esi + 8], bl
push 6
sete dl
push ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x4089a9
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x408998
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x408998
mov esi, dword [esi + 0xc]
mov byte [esp + 0x13], 1
cmp esi, ebx
je 0x40898f
mov dword [esi], eax
jmp 0x4089a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4089a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x50]
call fcn.00406db0
push ebp
call fcn.004271ba
mov bl, byte [esp + 0x17]
add esp, 4
push edi
call fcn.004271ba
add esp, 4
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004271ab
add esp, 0x60
ret
Function at 0x408ac0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x84
push esi
push edi
push 0x38
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00427c20
mov esi, dword [esp + 0xa4]
add esp, 0xc
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x100
test esi, esi
je 0x408afc
mov dword [esp + 0x18], 0x140
mov edi, dword [esp + 0x94]
mov dword [esp + 0x30], 1
mov dword [esp + 0x20], str.open
mov dword [esp + 0x24], edi
test esi, esi
je 0x408b21
mov dword [esi], 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x408b49
test esi, esi
je 0x408c06
mov edx, dword [esp + 0x4c]
pop edi
mov dword [esi], edx
pop esi
add esp, 0x84
ret 0xc
mov eax, dword [esp + 0x34]
cmp eax, 0x1b
je 0x408b5b
cmp eax, 0x1f
jne 0x408c06
xor eax, eax
mov dword [esp + 0x10], eax
push str.shell32.dll
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], 0x24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHOpenWithDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x408bfd
push 0x38
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00427c20
add esp, 0xc
mov dword [esp + 0x50], 0x3c
mov dword [esp + 0x54], 0x100
test esi, esi
je 0x408bb8
mov dword [esp + 0x54], 0x140
mov dword [esp + 0x6c], 1
mov dword [esp + 0x5c], str.openas
mov dword [esp + 0x60], edi
test esi, esi
je 0x408bd6
mov dword [esi], 0
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x408c06
test esi, esi
je 0x408c06
mov edx, dword [esp + 0x88]
pop edi
mov dword [esi], edx
pop esi
add esp, 0x84
ret 0xc
lea ecx, [esp + 8]
push ecx
push 0
call eax
pop edi
pop esi
add esp, 0x84
ret 0xc

Function at 0x408d00
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
xor ebx, ebx
push ebx
lea eax, [esp + 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408d72
mov edx, dword [esp + 0x18]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408d35
mov ecx, dword [esp + 0x18]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [esp + 0x10]
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
jne 0x408d62
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
xor al, al
pop ebx
pop ecx
ret
Function at 0x409640
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43a1e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x44cc30]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00408440
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4096a0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004075a0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00408440
cmp dword [esp + 0x28], 8
jb 0x4096ed
mov eax, dword [esp + 0x14]
push eax
call fcn.004268c7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x40a290
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43b498
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x44cc30]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44cc30]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
lea edx, [esp + 0x14]
push edx
push 0x20019
xor edi, edi
push edi
push ecx
mov dword [esp + 0x24], edi
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a3b4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push edi
push ebx
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a3b4
cmp dword [esp + 0x18], 1
jne 0x40a3b4
mov ebp, 7
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov word [esp + 0x24], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], edi
cmp eax, edi
jbe 0x40a38e
shr eax, 1
push eax
lea ecx, [esp + 0x24]
call fcn.00409610
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40a367
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x34]
dec ecx
push ecx
lea ecx, [esp + 0x24]
call fcn.00409610
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x28]
xor edx, edx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00408440
lea ecx, [esp + 0x20]
call fcn.00406db0
jmp 0x40a3e8
xor ecx, ecx
mov eax, ebp
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a3d0
sub eax, edx
sar eax, 1
push eax
push ebp
mov ecx, esi
call fcn.00408690
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004271ab
add esp, 0x38
ret
Function at 0x40aa50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43a3fc
mov eax, dword fs:[0]
push eax
sub esp, 0xc88
mov eax, dword [0x44cc30]
xor eax, esp
mov dword [esp + 0xc84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44cc30]
xor eax, esp
push eax
lea eax, [esp + 0xc9c]
mov dword fs:[0], eax
push 9
mov edi, ecx
xor eax, eax
mov esi, 7
xor ebp, ebp
push 0x43e1fc
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], ax
call fcn.00408690
xor ecx, ecx
push 1
mov word [esp + 0x38], cx
push 0x43e1f8
lea ecx, [esp + 0x38]
mov dword [esp + 0xcac], ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebp
call fcn.00408690
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
mov byte [esp + 0xca4], 1
jae 0x40aaf0
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x60]
push edx
push ebp
lea ebx, [edi + 0x18]
push eax
mov ecx, ebx
call fcn.0040a840
mov esi, eax
cmp esi, 0xffffffff
je 0x40abc2
lea eax, [esp + 0x68]
push eax
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40ac1d
lea eax, [esp + 0x68]
lea edx, [eax + 2]
jmp 0x40ab30
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40ab30
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x6c]
add edi, 0x54
push ecx
mov ecx, edi
call fcn.00408690
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x40ab5e
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x44]
push edx
push esi
push eax
mov ecx, ebx
call fcn.0040a840
mov ecx, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x40ab93
sub eax, ecx
sub eax, esi
push eax
add ecx, esi
push ecx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.0040aa10
mov byte [esp + 0xca4], 2
jmp 0x40abac
push 0xffffffffffffffff
add ecx, esi
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.0040aa10
mov byte [esp + 0xca4], 3
push 0xffffffffffffffff
push ebp
push eax
mov ecx, edi
call fcn.004070a0
lea ecx, [esp + 0x14]
call fcn.00406db0
jmp 0x40ac1d
lea eax, [esp + 0x680]
push eax
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40ac1d
lea ecx, [esp + 0x68]
push ecx
push ebp
push 0x43e1f0
lea edx, [esp + 0x68c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40ac1d
lea eax, [esp + 0x68]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40ac00
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [edi + 0x54]
call fcn.00408690
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x40ac35
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004268c7
add esp, 4
xor edx, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], dx
cmp dword [esp + 0x64], esi
jb 0x40ac5b
mov eax, dword [esp + 0x50]
push eax
call fcn.004268c7
add esp, 4
mov ecx, dword [esp + 0xc9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc84]
xor ecx, esp
call fcn.004271ab
add esp, 0xc94
ret
Function at 0x40b460
Capabilities:
Hide graphical window

Disassembly:
cmp byte [esp + 4], 0
je 0x40b476
mov eax, dword [ecx + 8]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
mov ecx, dword [ecx + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4

Function at 0x40b500
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xbc0
mov eax, dword [0x44cc30]
xor eax, esp
mov dword [esp + 0xbbc], eax
push esi
push edi
push 0x3b8
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.00427c20
mov edi, dword [esi + 8]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x3da]
push edx
mov dword [esp + 0x20], 0x3bc
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], 0x401
mov word [esp + 0x3dc], cx
call fcn.00427c20
add esp, 0x18
push 0x400
lea eax, [esp + 0x3c8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea ecx, [esp + 0x3c8]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
lea edx, [esp + 8]
push edx
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [esp + 0xbc4]
pop edi
pop esi
xor ecx, esp
call fcn.004271ab
add esp, 0xbc0
ret
push esi
mov esi, ecx
cmp byte [esi + 0x3d], 1
push 0
jne 0x4159b8
call fcn.0040b460
mov ecx, esi
pop esi
jmp 0x40b500
call fcn.0040b860
pop esi
ret

Function at 0x40b5e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xbc0
mov eax, dword [0x44cc30]
xor eax, esp
mov dword [esp + 0xbbc], eax
push esi
push edi
push 0x3b8
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.00427c20
mov edi, dword [esi + 8]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x3da]
push edx
mov dword [esp + 0x20], 0x3bc
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
mov word [esp + 0x3dc], cx
call fcn.00427c20
add esp, 0x18
push 0x400
lea eax, [esp + 0x3c8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea ecx, [esp + 0x3c8]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
lea edx, [esp + 8]
push edx
push 1
mov dword [esp + 0x24], eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [esp + 0xbc4]
pop edi
pop esi
xor ecx, esp
call fcn.004271ab
add esp, 0xbc0
ret