joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401759
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x416070
push dword [ebp + 0xc]
call fcn.00408e71
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
je 0x4017fb
movzx eax, word [ebp + 8]
push str.FILE
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40179b
push dword [ebp + 0xc]
call fcn.00408dc3
jmp 0x4017fa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401791
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401791
mov eax, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], eax
call fcn.00408b7b
mov esi, eax
pop ecx
test esi, esi
je 0x401791
push dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
call fcn.00405640
add esp, 0x10
test eax, eax
je 0x4017ff
push esi
call fcn.004082d0
push dword [ebp + 0xc]
call fcn.00408dc3
pop ecx
pop ecx
xor eax, eax
jmp 0x401828
push dword [ebp + 0xc]
push dword [ebp - 4]
push 1
push esi
call fcn.00408c8a
push esi
mov edi, eax
call fcn.004082d0
push dword [ebp + 0xc]
call fcn.00408dc3
add esp, 0x18
xor eax, eax
cmp edi, dword [ebp - 4]
sete al
pop edi
pop esi
leave
ret

Function at 0x4026c5
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdd0
push esi
lea ecx, [ebp - 0x18]
call fcn.00401000
lea ecx, [ebp - 0xc]
call fcn.00401000
lea eax, [ebp - 0x18]
push eax
push 1
push 0
call fcn.004018b3
add esp, 0xc
lea ecx, [ebp - 0xc]
push str.tencent_download_tool_for
call fcn.00401165
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
push eax
call fcn.004011f5
lea ecx, [ebp - 0xc]
call fcn.004011cc
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x402775
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402775
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea ecx, [ebp - 0xdd0]
call fcn.00402df6
lea eax, [ebp - 0xdd0]
push eax
push 0x40278c
push 0
push 0x6a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xdd0]
call fcn.00403319
lea ecx, [ebp - 0xc]
call fcn.0040110e
lea ecx, [ebp - 0x18]
call fcn.0040110e
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x402d21
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3bc
lea eax, [ebp - 0x3bc]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402df0
cmp byte [ebp - 0x3bc], 1
jne 0x402dea
mov al, byte [ebp - 0x3bb]
cmp al, 1
jne 0x402dea
push esi
push edi
xor esi, esi
push 0x12c
lea eax, [ebp - 0x12c]
push esi
push eax
call fcn.00408bc0
add esp, 0xc
lea eax, [ebp - 0x22c]
push 0xff
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, esi
je 0x402dca
push ebx
lea ebx, [ebp - 0x12c]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x402dc9
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
je 0x402dc9
push eax
push ebx
call fcn.004082e0
pop ecx
inc esi
pop ecx
add ebx, 0x1e
jmp 0x402da4
pop ebx
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
test esi, esi
pop esi
jle 0x402df0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push eax
call fcn.00401165
push 1
pop eax
jmp 0x402df2
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret 4
Function at 0x4034d9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x412cb4
call fcn.00408b5c
sub esp, 0x120
push ebx
xor ebx, ebx
cmp dword [0x41a958], ebx
push esi
push edi
mov esi, ecx
jne 0x4036fb
mov dword [0x41a958], 1
cmp dword [esi + 0x20], ebx
je 0x403699
cmp dword [0x416094], ebx
je 0x403674
call fcn.00404255
test eax, eax
jne 0x40352b
push ebx
push ebx
jmp 0x40369c
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x18]
call fcn.00401000
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], ebx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x403570
lea eax, [esi + 0xcc4]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040111e
jmp 0x40357f
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00401165
lea eax, [ebp - 0x18]
push str.vqqsdl.dll
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401477
add esp, 0xc
lea edi, [esi + 0xcec]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040111e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0040110e
push 0x100000
mov ecx, edi
call fcn.004011cc
push eax
push 0x6d
call fcn.00401759
add esp, 0xc
test eax, eax
jne 0x4035ed
push ebx
push 6
mov ecx, esi
call fcn.00403b08
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov dword [0x41a958], ebx
call fcn.0040110e
jmp 0x4036fb
lea eax, [esi + 0xcd0]
push eax
lea eax, [esi + 0xcc4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040141e
add esp, 0xc
lea ecx, [esi + 0xcdc]
push eax
mov byte [ebp - 4], 2
call fcn.0040111e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0040110e
lea ecx, [esi + 0xcdc]
lea edi, [esi + 0x24]
call fcn.004011cc
push eax
mov ecx, edi
call fcn.00402cf5
push dword [esi + 0xd10]
mov ecx, edi
call fcn.00402c1a
lea ecx, [esi + 0xcec]
call fcn.004011cc
mov ecx, dword [esi + 0x20]
push eax
call fcn.00405243
mov ecx, dword [esi + 0x20]
push edi
call fcn.00405255
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov dword [0x416094], ebx
call fcn.0040110e
push ebx
push 0x3e8
push dword [esi + 8]
push dword [esi + 0xd10]
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
je 0x4036a5
call fcn.0040538f
test eax, eax
jne 0x4036a5
push ebx
push 6
mov ecx, esi
call fcn.00403b08
jmp 0x4036f5
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push 0x3fa
push dword [esi + 0xd10]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0x3fb
push dword [esi + 0xd10]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x401
push dword [esi + 0xd10]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0xce8], 2
mov dword [0x41a958], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40388e
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x412cc8
call fcn.00408b5c
sub esp, 0xc
push ebx
push esi
push edi
push 0x8000
push 0x10
push 0x10
push 1
mov esi, ecx
push 0x65
push 0xfffffffffffffffa
push dword [esi + 0xd10]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
xor edi, edi
cmp eax, edi
je 0x4038db
push eax
push edi
push 0x80
push dword [esi + 0xd10]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0040410d
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.004011de
test eax, eax
je 0x403904
lea eax, [ebp - 0x18]
lea ecx, [esi + 0xcc4]
push eax
call fcn.0040111e
push esi
push 0x403782
push dword [esi + 0xd10]
push 0x6f
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call edi
lea ecx, [esi + 0xd38]
call fcn.004011cc
push eax
push dword [esi + 0xd10]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x41a5f8
push 0x3fd
push dword [esi + 0xd10]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push 0x3fa
push dword [esi + 0xd10]
call ebx
push eax
call edi
push 0
push 0x3fb
push dword [esi + 0xd10]
call ebx
push eax
call edi
push 0
push 0x401
push dword [esi + 0xd10]
call ebx
push eax
call edi
cmp dword [esi + 0xd0c], 0
je 0x4039b8
mov edi, 0x3fa
push edi
push dword [esi + 0xd10]
call ebx
push eax
push edi
push 0x111
push dword [esi + 0xd10]
call dword [sym.imp.USER32.dll_PostMessageA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040110e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403c48
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
mov eax, 0x412d1c
call fcn.00408b5c
sub esp, 0x20
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 0xc], edi
je 0x403cb7
mov dword [esi + 0xce8], edi
call fcn.0040370a
cmp dword [ebp + 0xc], 5
jne 0x403cb2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea eax, [esi + 0xcc4]
push eax
mov dword [ebp - 0x10], edi
call fcn.0040186e
pop ecx
test eax, eax
pop ecx
je 0x403ca2
cmp dword [ebp - 0x10], edi
ja 0x403ca2
jb 0x403c9d
cmp dword [ebp - 0x14], 0x100000
jae 0x403ca2
push edi
push 4
jmp 0x403ca6
push 5
push 1
mov ecx, esi
call fcn.00403b08
jmp 0x403e58
push dword [ebp + 0xc]
jmp 0x403ca4
push ebx
push 1
pop ebx
mov ecx, esi
push 0x64
mov dword [esi + 0xce8], 9
mov dword [esi + 0xd08], ebx
call fcn.00403fbe
cmp dword [esi + 0xd04], edi
je 0x403d12
push edi
push 0xf020
push 0x112
push dword [esi + 0xd10]
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0x4160f0
push edi
lea ecx, [esi + 0xcdc]
call fcn.004011cc
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, esi
call fcn.00404acd
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fa
push dword [esi + 0xd10]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 5
push 0x3fb
push dword [esi + 0xd10]
call edi
push eax
call ebx
push 0
push 0x401
push dword [esi + 0xd10]
call edi
push eax
call ebx
lea ecx, [ebp - 0x20]
call fcn.00401000
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push 0x3a
push edi
mov dword [ebp - 4], edi
call fcn.004018b3
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.004011cc
push eax
push 0x3fd
push dword [esi + 0xd10]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004046ae
cmp dword [esi + 0xac0], edi
je 0x403e4b
lea ecx, [ebp - 0x2c]
call fcn.00401000
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push 0x39
push edi
mov dword [ebp + 0xc], edi
call fcn.004018b3
lea eax, [ebp + 0xc]
push eax
push str.Shell32.dll
call fcn.004015ab
add esp, 0x14
test eax, eax
je 0x403e3f
cmp dword [ebp + 0xc], 0x50000
jb 0x403e3f
push 1
lea edi, [esi + 0xac4]
pop ebx
lea ecx, [ebp - 0x20]
mov dword [edi], 0x1e8
mov dword [esi + 0xad0], 0x10
mov dword [esi + 0xc64], 4
mov dword [esi + 0xca8], ebx
call fcn.004011cc
push eax
lea eax, [esi + 0xb64]
push eax
call fcn.004082e0
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.004011cc
add esi, 0xc68
push eax
push esi
call fcn.004082e0
pop ecx
pop ecx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040110e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040110e
pop ebx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40401a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
mov esi, ecx
cmp dword [esi + 0xac0], 0
jne 0x40410a
mov eax, dword [esi + 0xd10]
push edi
mov dword [esi + 0xac8], eax
lea edi, [esi + 0xac4]
lea eax, [ebp - 0x94]
mov dword [esi + 0xacc], 0x65
push eax
mov dword [edi], 0x58
mov dword [esi + 0xad0], 7
mov dword [esi + 0xad4], 0x5f5
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x4040b4
cmp dword [ebp - 0x90], 4
jbe 0x4040a5
cmp dword [ebp - 0x90], 5
jne 0x4040b4
cmp dword [ebp - 0x8c], 0
jne 0x4040b4
push 0x8000
push 0x10
push 0x10
push 1
push 0x7c
jmp 0x4040c1
push 0x8000
push 0x10
push 0x10
push 1
push 0x65
push 0xfffffffffffffffa
push dword [esi + 0xd10]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
lea ecx, [esi + 0xd38]
mov dword [esi + 0xad8], eax
call fcn.004011cc
push eax
lea eax, [esi + 0xadc]
push eax
call fcn.004082e0
pop ecx
pop ecx
push edi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov dword [esi + 0xac0], 1
pop edi
pop esi
leave
ret

Function at 0x40410d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x412d47
call fcn.00408b5c
sub esp, 0x41c
push ebx
push esi
mov dword [ebp - 0x1c], ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x427]
mov byte [ebp - 0x428], bl
mov esi, 0x41a5f8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x400
stosb byte es:[edi], al
call fcn.0040102d
push 1
lea eax, [ebp - 0x10]
pop edi
push eax
mov eax, dword [ebp - 0x1c]
push edi
push ebx
lea ecx, [eax + 0xcb8]
mov dword [ebp - 4], edi
call fcn.004011cc
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4041b2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x428]
push eax
push ebx
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4041a9
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0x28]
push eax
call fcn.00401165
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.004010ca
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040110e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4041e0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x412d5c
call fcn.00408b5c
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
add ecx, 0xcb8
call fcn.004011cc
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40423b
lea ecx, [ebp + 8]
call fcn.004011de
push eax
lea ecx, [ebp + 8]
call fcn.004011cc
push eax
push 1
push 0
push 0x41a5f8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040110e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x404255
Capabilities:
Get common file path

Disassembly:
mov eax, 0x412d70
call fcn.00408b5c
sub esp, 0x21c
and byte [ebp - 0x228], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x227]
and byte [ebp - 0x124], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
add ebx, 0xcc4
stosw word es:[edi], ax
mov ecx, ebx
stosb byte es:[edi], al
call fcn.004011f0
cmp eax, 0x103
ja 0x4043cf
mov ecx, ebx
call fcn.004011f0
push eax
mov ecx, ebx
call fcn.004011d9
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00408450
mov esi, 0x104
lea eax, [ebp - 0x124]
push esi
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004019bf
lea eax, [ebp - 0x124]
push eax
call fcn.004083d0
mov edi, eax
add esp, 0x1c
cmp edi, 2
jl 0x404320
jne 0x404309
cmp byte [ebp - 0x123], 0x3a
jne 0x404320
cmp edi, 2
jle 0x40435f
cmp byte [ebp - 0x123], 0x3a
jne 0x404320
cmp byte [ebp - 0x122], 0x5c
je 0x40435f
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xd0c], 0
je 0x4043cf
push esi
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00408bc0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x124]
push eax
call fcn.004083d0
pop ecx
mov edi, eax
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040102d
xor esi, esi
cmp byte [ebp + edi - 0x125], 0x5c
mov dword [ebp - 4], esi
je 0x40438a
push 0x416040
lea ecx, [ebp - 0x1c]
call fcn.00401266
lea eax, [ebp - 0x1c]
push eax
call fcn.0040161f
movzx eax, al
cmp eax, esi
pop ecx
je 0x4043bf
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040111e
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x20], esp
push ebx
call fcn.004010ca
mov ecx, dword [ebp - 0x10]
call fcn.004041e0
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040110e
mov eax, esi
jmp 0x4043d1
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x404acd
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x412e0c
call fcn.00408b5c
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
push 0x3e8
push dword [esi + 0xd48]
call edi
push 0x3e9
mov dword [ebp - 0x10], eax
push dword [esi + 0xd48]
call edi
push 0x3ea
mov dword [ebp - 0x1c], eax
push dword [esi + 0xd48]
call edi
push 0x3ff
mov dword [ebp - 0x14], eax
push dword [esi + 0xd48]
call edi
push 0x3ec
mov dword [ebp - 0x18], eax
push dword [esi + 0xd48]
call edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
call edi
push 5
push dword [ebp - 0x18]
call edi
xor ebx, ebx
push ebx
push dword [ebp - 0x20]
call edi
lea ecx, [ebp - 0x2c]
call fcn.00401000
lea ecx, [esi + 0xcac]
mov dword [ebp - 4], ebx
call fcn.004011cc
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
push dword [ebp - 0x10]
call edi
push 1
push dword [esi + 0xd4c]
push 0x30
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x2c]
push eax
push 0x54
push ebx
call fcn.004018b3
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.004011cc
push eax
push dword [ebp - 0x1c]
call edi
lea eax, [ebp - 0x2c]
push eax
push 0x56
push ebx
call fcn.004018b3
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.004011cc
push eax
push dword [ebp - 0x14]
call edi
lea ebx, [esi + 0xcc4]
push 0
push 0x32
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.00401a40
add esp, 0x10
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004011f0
mov edx, eax
mov ecx, ebx
mov dword [ebp - 0x20], edx
call fcn.004011f0
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
jae 0x404c03
push 0x416118
lea ecx, [ebp - 0x38]
call fcn.00401266
lea ecx, [ebp - 0x38]
call fcn.004011cc
push eax
push dword [ebp - 0x18]
call edi
mov edi, dword [sym.imp.USER32.dll_MoveWindow]
push 0
mov ebx, 0x15e
push 0x23
push ebx
push 0x14
push 0x14
push dword [ebp - 0x10]
call edi
push 0
push 0x55
push ebx
push 0x3c
push 0x14
push dword [ebp - 0x1c]
call edi
xor ebx, ebx
push 5
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push ebx
push 0x9b
push 0x14
push ebx
push dword [ebp - 0x14]
call edi
push 5
push ebx
push ebx
push 0xad
push 0x14
push ebx
push dword [ebp - 0x18]
call edi
push 1
push ebx
push dword [esi + 0xd48]
call dword [sym.imp.USER32.dll_InvalidateRect]
and byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.0040110e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040110e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404efe
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x412e4c
call fcn.00408b5c
sub esp, 0x250
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xd08], ebx
jne 0x40507f
lea ecx, [ebp - 0x28]
call fcn.00401000
push 0x104
lea eax, [ebp - 0x158]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00408bc0
push 0x20
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00408bc0
lea eax, [ebp - 0x28]
push eax
push 0x47
push ebx
call fcn.004018b3
mov eax, dword [esi + 0xd10]
add esp, 0x24
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x25c]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], eax
call fcn.004011cc
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], 1
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, ebx
jne 0x404f9b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040110e
jmp 0x40509f
lea ecx, [ebp - 0x158]
push edi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x34]
push eax
call fcn.0040102d
lea edi, [esi + 0xcc4]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040111e
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.0040110e
lea eax, [ebp - 0x158]
push eax
call fcn.004083d0
cmp byte [ebp + eax - 0x159], 0x5c
pop ecx
je 0x405011
push 0x416040
lea ecx, [ebp - 0x34]
call fcn.0040102d
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004011f5
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.0040110e
push ebx
push 0x32
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00401a40
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004011f0
mov edx, eax
mov ecx, edi
mov dword [ebp - 0x10], edx
call fcn.004011f0
mov ecx, dword [ebp - 0x10]
pop edi
cmp ecx, eax
jae 0x40504e
push 0x416118
lea ecx, [ebp - 0x1c]
call fcn.00401266
lea ecx, [ebp - 0x1c]
call fcn.004011cc
push eax
push 0x3ff
push dword [esi + 0xd48]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040110e
jmp 0x404f8a
push 1
push 0x4160f0
push ebx
lea ecx, [esi + 0xcc4]
call fcn.004011cc
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x408c44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b583
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408c87
test byte [esp + 8], 2
je 0x408c87
call fcn.0040b5f6
mov dword [eax], 0xd
call fcn.0040b5ff
mov dword [eax], 5
jmp 0x408c60
xor eax, eax
ret