joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456070
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45610f
cmp dword [ebx + 0x94], 0
jne 0x456109
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455ff8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456109
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4560cf
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456109
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004142d0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4560de
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456328
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x461c94]
cmp dword [eax + 0x30], 0
je 0x456485
test bl, bl
jne 0x4563d6
cmp dword [esi + 0x9c], 0
jne 0x4563cb
mov eax, esi
call fcn.00458c20
push eax
push 0x456254
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45639c
mov eax, dword [0x461c94]
call fcn.00459300
test al, al
je 0x45639c
mov eax, dword [0x461cb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x45639c
push 0
mov eax, dword [0x461cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x456386
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4563cb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004142d0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4563ab
inc dword [esi + 0x9c]
jmp 0x456485
cmp dword [esi + 0x9c], 0
jle 0x456485
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x456485
cmp dword [esi + 0x44], 0
je 0x456431
mov eax, dword [0x461c94]
call fcn.00459300
test al, al
je 0x456431
mov eax, dword [0x461cb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x456431
push 5
mov eax, dword [0x461cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45641b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x456460
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004142d0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x456440
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x461cb8
mov ecx, 1
mov edx, dword [0x456234]
call fcn.00405884
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x456f6c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x456fd6
mov eax, ebx
call fcn.00459300
test al, al
jne 0x456fd6
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404904
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x456fc3
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x456fe3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
jmp 0x456fe3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x458424
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458492
mov eax, esi
call fcn.004411e0
test al, al
je 0x458492
mov eax, dword [ebx + 0x84]
call fcn.00440e40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458492
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x458486
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440e40
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00438cf4
jmp 0x458492
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00458260
pop esi
pop ebx
ret
Function at 0x4019e0
Capabilities:
Connect to http server

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d2c0
push eax
mov dword fs:[0], esp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 4]
lea edi, [esi + 4]
push edi
push 0
push 3
push 0x413824
push 0x413824
push eax
push ecx
push edx
mov dword [esp + 0x30], 1
call dword [sym.imp.WININET.dll_InternetConnectA]
push str.InternetConnect
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00401810
test eax, eax
je 0x401aa6
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 8]
push edi
push 0x4000000
push 0
push 0
push str.HTTP_1.0
push eax
push 0x4120d0
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push str.HttpOpenRequest
push eax
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.00401810
test eax, eax
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x18]
je 0x401aaf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop edi
xor al, al
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x401b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d317
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString_2
push str..html
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::operator
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push edi
call sub.MFC42.DLL_CString::CString_1
mov bl, 3
push str.http
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x401bcd
lea ecx, [esp + 0x30]
push 4
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call fcn.0040cb9a
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov dl, byte [esi + str._:_____]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::Remove
inc esi
cmp esi, 9
jl 0x401bcd
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
add ecx, 0xfffffefc
test ecx, ecx
jl 0x401c6f
mov eax, dword [eax - 8]
sub eax, ecx
lea ecx, [esp + 0x30]
sub eax, 0xa
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 5
call fcn.0040cb9a
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [esp + 0x14]
call fcn.0040cb88
lea edx, [esp + 0xc]
push str..html
lea eax, [esp + 0x34]
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x402070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi], edi
mov eax, dword [ebp]
test eax, eax
je 0x402091
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esi]
add eax, 0xa
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
test edi, edi
jle 0x4020b8
mov edx, dword [esp + 0x10]
mov ecx, esi
sub edx, esi
mov al, byte [edx + ecx]
xor al, 0x6f
mov byte [ecx], al
inc ecx
dec edi
jne 0x4020ad
mov dword [ebp], esi
pop edi
pop esi
mov eax, 1
pop ebp
ret 0x10
Function at 0x402d00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40d4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x41382c]
test eax, eax
jne 0x402dab
push esi
lea ecx, [esp + 4]
call fcn.0040cbb2
push 0x514
push 0x514
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402d92
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x402d92
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x41382c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402dc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x51c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402e22
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x52c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x51c
ret

Function at 0x403030
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xa28
push ebx
mov ebx, dword [esp + 0xa34]
push ebp
mov ebp, dword [esp + 0xa34]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40311b
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.00402dc0
add esp, 0xc
test eax, eax
jne 0x40311b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.00402dc0
add esp, 0xc
test eax, eax
jne 0x40311b
lea ecx, [esp + 0x10]
push 0x412598
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4030f5
lea edx, [esp + 0x10]
push 0x412594
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4030f5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4030f8
mov byte [esi], 0
push 0x412590
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret
Function at 0x4033d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d5cd
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.0040cf20
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 4]
mov dword [esp + 0x1014], 3
call fcn.0040cbb2
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x1024]
mov edx, dword [esp + 0x1020]
push esi
lea eax, [esp + 0x10]
push 0x1000
push eax
push 0x413824
push ecx
push edx
mov byte [esp + 0x102c], 4
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
test al, al
jne 0x40345f
lea eax, [esp + 0x1028]
lea ecx, [esp + 4]
push eax
call fcn.0040cb9a
jmp 0x40346d
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
call fcn.0040cb88
mov esi, dword [esp + 0x101c]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x1014], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1020]
mov byte [esp + 0x1014], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1024]
mov byte [esp + 0x1014], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1028]
mov byte [esp + 0x1014], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x100c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1014
ret 0x10

Function at 0x403750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x518
test edx, edx
push edi
je 0x403817
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x403817
mov ecx, 0x145
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x514
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x4037e6
cmp byte [esp + 5], 0x3a
jne 0x403817
mov edi, 0x412260
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebx
jmp 0x4037f6
lea eax, [esp + ecx + 3]
mov cl, byte [esp + ecx + 3]
cmp cl, 0x5c
jne 0x4037f6
mov byte [eax], 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403817
test al, 0x10
je 0x403817
mov eax, 1
pop edi
add esp, 0x518
ret
xor eax, eax
pop edi
add esp, 0x518
ret
Function at 0x403bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x403bf0
pop edi
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x18]
push esi
push edi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403c0d
pop edi
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
ret

Function at 0x403c70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
lea eax, [esp + 0x10]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x403c98
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
add esp, 8
ret
mov eax, dword [esp + 0xc]
lea edx, [esp]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403cd6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 8
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 8
ret

Function at 0x404150
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
mov ebx, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.zssetup.log
cmp byte [esp + ecx + 0xf], 0x5c
je 0x40418f
mov edi, 0x4125e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4125dc
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
xor ecx, ecx
test eax, eax
pop edi
pop esi
setne cl
mov dword [ebx + 4], eax
pop ebp
mov eax, ecx
pop ebx
add esp, 0x104
ret
Function at 0x405620
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x405646
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x405648
mov eax, esi
pop esi
ret

Function at 0x405730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1968
call fcn.0040cf20
mov edx, dword [esp + 0x196c]
push ebx
test edx, edx
push edi
je 0x405807
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x405807
mov ecx, 0x145
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x514
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x4057cc
cmp byte [esp + 9], 0x3a
jne 0x405807
mov edi, 0x412260
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4057dc
lea eax, [esp + ecx + 7]
mov cl, byte [esp + ecx + 7]
cmp cl, 0x5c
jne 0x4057dc
mov byte [eax], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x405807
test bl, 0x10
je 0x405807
pop edi
mov eax, 1
pop ebx
add esp, 0x1968
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x1968
ret

Function at 0x405c70
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x40d868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea ecx, [esp + 4]
call fcn.0040cbb2
push str.FileProgress_running
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call fcn.0040cb88
mov eax, dword [esp + 4]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x405cf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405cf2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405d20
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x40d8d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.0040cbb2
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0
call fcn.0040cbb2
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 1
call fcn.0040cbb2
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 2
call fcn.0040cbb2
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 3
call fcn.0040cbb2
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 4
call fcn.0040cbb2
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call fcn.0040cbb2
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 6
call fcn.0040cbb2
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 7
call fcn.0040cbb2
mov ecx, dword [esp + 8]
mov dword [esi], 0x40ea64
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405df0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x40d948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x40ea64
lea ecx, [esi + 0x38]
mov dword [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4062d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40da70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40630c
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 4]
call fcn.0040cb9a
mov ecx, esi
call fcn.00406590
lea ecx, [esp + 0xc]
call fcn.0040cbb2
lea edx, [esi + 4]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x30], 1
call fcn.0040cb9a
lea ecx, [esp + 0x1c]
call fcn.004032f0
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
call fcn.00403380
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x28]
push eax
push ecx
mov ecx, dword [esi + 0x2c]
push ecx
push edx
mov edx, dword [esi + 0x24]
mov ecx, esi
push edx
call fcn.004064a0
push str.scroll
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x3c]
mov bl, 3
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.colornew
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], bl
call fcn.00403560
mov eax, dword [esi + 0x40]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.colorold
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], bl
call fcn.00403560
push str.agent
lea ecx, [esp + 0xc]
call fcn.0040cb88
add esi, 0x38
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push esi
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x34], 6
mov ecx, esp
mov dword [esp + 0x18], esp
push str.name
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x3c], 7
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], bl
call fcn.004034f0
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.00403370
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4