joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432a28
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x344
lea ebp, [esp - 4]
mov eax, dword [0x49a2a0]
xor eax, ebp
mov dword [ebp + 0x344], eax
push 0x1c
mov eax, 0x4756dc
call fcn.0045d993
mov edi, dword [ebp + 0x350]
and dword [edi + 4], 0
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x10], edi
mov esi, 0x114
cmp byte [0x4a0314], cl
jne 0x432ae4
lea eax, [ebp + 0x22c]
push eax
push esi
mov byte [ebp + 0x22c], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x432ae0
cmp eax, esi
jae 0x432ae0
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp + 0x340], 0
call fcn.0042278b
pop ecx
pop ecx
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00422365
push dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
call fcn.0043e724
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.0045cdba
add ebp, 0x348
leave
ret
xor al, al
jmp 0x432abd
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push esi
call ebx
mov edi, eax
test edi, edi
je 0x432ae0
cmp edi, esi
jae 0x432b18
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [ebp + 0x228], ax
lea eax, [ebp]
push eax
call fcn.0042230d
jmp 0x432abb
lea ecx, [ebp - 0x1c]
call fcn.004221f1
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.00413a04
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x432b50
xor bl, bl
push dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call fcn.0043e724
pop ecx
mov al, bl
jmp 0x432abd
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push eax
mov word [eax + edi*2], cx
call fcn.004219b7
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x432b3a
dec edi
cmp edi, esi
jne 0x432b3a
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.00422365
mov bl, 1
jmp 0x432b3c

Function at 0x432c07
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x47570c
call fcn.0045d993
xor ebx, ebx
cmp byte [0x4a0314], bl
jne 0x432c4c
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00422737
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0043e724
pop ecx
cmp esi, ebx
je 0x432c5a
mov al, 1
call fcn.0045da6b
ret
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x432c42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x432c6b
xor al, al
jmp 0x432c46
lea ecx, [ebp - 0x50]
call fcn.00432e3d
lea ecx, [ebp - 0x28]
call fcn.004221f1
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00433309
test al, al
jne 0x432c9f
push dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
call fcn.0043e724
pop ecx
mov al, bl
jmp 0x432c46
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
jmp 0x432c8e
Function at 0x433184
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4a0314], 0
jne 0x4331ba
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00422737
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043e724
pop ecx
mov eax, esi
pop esi
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4331ca
or eax, eax
leave
ret

Function at 0x4338e4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43390e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43390e
xor al, al
jmp 0x43392e
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00460db0
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4

Function at 0x433ada
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x400000
cmp dword [ebp + 0xc], eax
jbe 0x433aea
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00433a46

Function at 0x433b0d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, 0x400000
push esi
mov esi, ecx
cmp dword [ebp + 0xc], eax
jbe 0x433b22
mov dword [ebp + 0xc], eax
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
test eax, eax
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov ecx, dword [esi + 0x20d]
setne bl
cmp ecx, dword [esi]
jne 0x433b90
add dword [esi + 0x211], eax
mov ecx, dword [esi + 0x219]
mov edx, dword [esi + 0x21d]
adc dword [esi + 0x215], 0
mov eax, ecx
or eax, edx
je 0x433b90
mov eax, dword [0x4a032c]
test eax, eax
je 0x433b90
push edx
push ecx
push dword [esi + 0x215]
add esi, 0x221
push dword [esi - 0x10]
push esi
call eax
add esp, 0x14
pop esi
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x434ae6
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
push str.GlobalMemoryStatusEx
push str.kernel32.dll
mov dword [esi], SysReAllocString
mov dword [ebp - 0x60], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x434b3f
lea ecx, [ebp - 0x60]
push ecx
call eax
test eax, eax
je 0x434b3f
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.00434a97
add esp, 0x10
mov dword [esi + 4], edx
jmp 0x434b5f
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jb 0x434b5b
mov eax, dword [ebp - 0x18]
and dword [esi + 4], 0
mov dword [esi], eax
mov al, 1
pop esi
leave
ret
Function at 0x439c00
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4a0564], 0
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jne 0x439c2a
call edi
push eax
push 0
push 0x4392c0
push 0xffffffffffffffff
call esi
mov dword [0x4a0564], eax
cmp dword [0x4a0568], 0
jne 0x439c46
call edi
push eax
push 0
push 0x439990
push 3
call esi
mov dword [0x4a0568], eax
mov eax, dword [0x4a056c]
test eax, eax
jne 0x439c62
call edi
push eax
push 0
push 0x439a90
push 4
call esi
mov dword [0x4a056c], eax
cmp dword [0x4a0564], 0
pop edi
pop esi
je 0x439c80
cmp dword [0x4a0568], 0
je 0x439c80
test eax, eax
je 0x439c80
mov eax, 1
ret
xor eax, eax
ret

Function at 0x443f0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x443f56
call fcn.004450d4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x443f56
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x443f72
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00443a89
mov esi, eax
test edi, edi
je 0x443f70
test ebx, ebx
je 0x443f70
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x446533
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x476b0f
call fcn.0045d993
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x446558
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x44659e
lea ecx, [ebp - 0x10]
call fcn.00401c1b
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044409d
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040135b
mov eax, esi
call fcn.0045da6b
ret 8

Function at 0x4493d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4493f6
cmp dword [edi + 0x54], 0
jne 0x4493f6
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004450d4
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00449393
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x44c41b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44c463
call fcn.004450d4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44c463
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x44c4a6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44c48f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44c48f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44c4a3
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45cdba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49a2a0]
jne 0x45cdc4
repz ret
jmp fcn.004638cd
Function at 0x46e0ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046444d
and dword [ebp - 4], 0
cmp dword [0x4a2e9c], 0
mov ebx, eax
jne 0x46e1b0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46e261
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x485e68
push edi
call esi
test eax, eax
je 0x46e261
push eax
call fcn.004643db
mov dword [esp], 0x485e58
push edi
mov dword [0x4a2e9c], eax
call esi
push eax
call fcn.004643db
mov dword [esp], 0x485e44
push edi
mov dword [0x4a2ea0], eax
call esi
push eax
call fcn.004643db
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a2ea4], eax
call esi
push eax
call fcn.004643db
pop ecx
mov dword [0x4a2eac], eax
test eax, eax
je 0x46e1b0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004643db
pop ecx
mov dword [0x4a2ea8], eax
mov eax, dword [0x4a2ea8]
cmp eax, ebx
je 0x46e208
cmp dword [0x4a2eac], ebx
je 0x46e208
push eax
call fcn.00464456
push dword [0x4a2eac]
mov esi, eax
call fcn.00464456
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46e208
test edi, edi
je 0x46e208
call esi
test eax, eax
je 0x46e1ff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46e1ff
test byte [ebp - 0xc], 1
jne 0x46e208
or dword [ebp + 0x10], 0x200000
jmp 0x46e241
mov eax, dword [0x4a2ea0]
cmp eax, ebx
je 0x46e241
push eax
call fcn.00464456
pop ecx
test eax, eax
je 0x46e241
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46e241
mov eax, dword [0x4a2ea4]
cmp eax, ebx
je 0x46e241
push eax
call fcn.00464456
pop ecx
test eax, eax
je 0x46e241
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a2e9c]
call fcn.00464456
pop ecx
test eax, eax
je 0x46e261
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46e263
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4028f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [esi + 0x10], 0
push ebx
mov bl, 1
jne 0x402967
test edi, edi
je 0x402967
mov eax, dword [esi + 0x38]
lea ecx, [eax + edi]
cmp ecx, dword [esi + 0x34]
jb 0x40292c
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 8]
push 0
push edx
push eax
mov eax, dword [esi + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
mov dword [esi + 0x38], 0
cmp edi, dword [esi + 0x34]
jb 0x402950
mov edx, dword [esi + 0x24]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 8]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x30]
mov edx, dword [ebp + 8]
add eax, dword [esi + 0x38]
push edi
push edx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x38], edi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x402d40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x226]
push ecx
mov word [ebp - 0x228], ax
call sub.MSVCRT.dll_memset
xor eax, eax
add esp, 0xc
push 0x7f02
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
mov edx, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov edi, eax
push edx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402dbf
test ebx, ebx
jne 0x402dec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402dce
call fcn.004155d0
push edi
call esi
mov eax, dword [0x425630]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [0x425630]
mov esi, eax
lea ecx, [esi + 2]
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push ebx
mov word [esi + edi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x228]
call fcn.00405b00
lea ecx, [ebp - 0x228]
push ecx
push esi
mov edx, ecx
push edx
push esi
push edi
call fcn.0040f4b0
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
call fcn.00402e80
mov edx, dword [ebp - 4]
push edx
mov bl, al
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x425630]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4031c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40331f
push 0xf
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x403319
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x403312
mov ebx, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
lea ecx, [ebp - 4]
call ebx
push 0x4202fc
lea ecx, [ebp - 0xc]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_wchar_t_const__]
mov esi, dword [edi]
add esi, edi
cmp dword [edi + 0x10], 0
je 0x40327c
cmp word [esi], 0
je 0x4032e7
lea esp, [esp]
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_unsigned_int___thiscall_C2bString::GetLength_void_const]
test eax, eax
je 0x40324a
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_class_C2bString_const__]
push esi
lea ecx, [ebp - 4]
call dword [0x4253c8]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403260
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x403230
jmp 0x4032e7
lea ecx, [ebp - 8]
call ebx
cmp byte [esi], 0
je 0x4032de
mov ebx, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::CodeFrom_void_const___int__int__int__]
lea esp, [esp]
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_unsigned_int___thiscall_C2bString::GetLength_void_const]
test eax, eax
je 0x4032aa
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_class_C2bString_const__]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4032b0
sub eax, edx
push 0
mov edi, eax
push edi
push 0
push esi
lea ecx, [ebp - 8]
call ebx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_class_C2bString_const__]
cmp byte [esi + edi + 1], 0
lea esi, [esi + edi + 1]
jne 0x403290
lea ecx, [ebp - 8]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
push eax
push 0x21
push 0xbd7
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
lea ecx, [ebp - 0xc]
call esi
lea ecx, [ebp - 4]
call esi
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403490
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
push esi
push edi
add ebx, 0x14
push eax
push 0x41ff98
xor edi, edi
mov eax, 0xf007
lea esi, [ebp - 0x27c]
mov dword [ebp - 0x10], ebx
call fcn.0041c470
lea ecx, [ebp - 0xc]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
push edi
lea eax, [ebp - 8]
push eax
push 0xaf
call fcn.0041d910
mov esi, eax
add esp, 0xc
test esi, esi
je 0x403504
mov ecx, dword [ebp - 8]
push esi
push ecx
push esi
lea ecx, [ebp - 0xc]
call dword [sym.imp.Ngs3.dll_public:_wchar_t____thiscall_C2bString::GetBuffer_int_]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push esi
lea ecx, [ebp - 0xc]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::ReleaseBuffer_int_]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0xc]
push eax
mov eax, 5
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x3c], edx
call fcn.0041c570
test al, al
je 0x4035f9
mov ecx, dword [esi + 4]
push ecx
lea edx, [ebp - 0x27c]
push edx
call fcn.0041c6e0
test al, al
je 0x4035f9
mov esi, dword [ebx]
mov edi, dword [ebp - 0x50]
mov ecx, edi
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403576
test dx, dx
je 0x403572
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403576
add eax, 4
add ecx, 4
test dx, dx
jne 0x403550
xor eax, eax
jmp 0x40357b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4035f9
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 8], 0
call esi
test eax, eax
jne 0x4035c4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx]
push edi
push eax
call esi
test eax, eax
jne 0x4035c4
mov eax, dword [ebx]
lea esi, [ebp - 8]
call fcn.00406610
test al, al
je 0x4035c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4035eb
call fcn.004155d0
jmp 0x4035eb
mov eax, dword [ebx]
push edi
push eax
call fcn.00415ed0
mov ebx, dword [ebp + 8]
call fcn.004051c0
mov ecx, dword [ebp - 0x10]
push edi
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_wchar_t_const__]
call fcn.004050b0
mov edi, ebx
call fcn.00402620
mov eax, dword [ebp - 8]
test eax, eax
je 0x4035f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
mov ecx, dword [ebp - 0x70]
mov edx, dword [0x425630]
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4046f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
push ebx
push esi
push edi
mov bl, al
mov eax, dword [0x425658]
push str.PrintDlgExW
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54
lea ecx, [ebp - 0xf8]
push 0
push ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x4252fc
call sub.MSVCRT.dll_memset
movzx ecx, bl
add esp, 0xc
neg ecx
mov eax, 1
sbb ecx, ecx
mov dword [ebp - 0xd8], eax
lea edx, [ebp - 0xa4]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xcc], eax
mov eax, 0xffff
mov dword [ebp - 0xd0], edx
mov edx, dword [edi + 4]
and ecx, 0x400
or ecx, 0x40104
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xc8], eax
push edx
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0x54
mov dword [ebp - 0xd4], 0xc
mov dword [ebp - 0xac], 0xffffffff
mov dword [ebp - 0xe4], ecx
call fcn.004178c0
test al, al
je 0x4048d1
mov eax, dword [ebp - 0xe8]
push 0x42530c
push eax
push edi
mov eax, 0x4250dc
lea esi, [ebp - 0x178]
call fcn.00419cc0
xor esi, esi
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0x30], 0x420220
mov dword [ebp - 0x2c], 0x8f
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], 0x42074c
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
test eax, eax
mov eax, dword [ebp - 0xe4]
sets cl
and eax, 0x400002
sub eax, 2
mov byte [ebp - 8], cl
je 0x40483b
sub eax, 0x3ffffe
mov dword [ebp - 0xd8], 0xffffffff
jne 0x40483b
mov dword [ebp - 0xd8], 0xfffffffe
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xd8]
mov edi, dword [edi + 4]
lea ecx, [ebp - 0x38]
push ecx
push esi
mov dword [ebp - 0x12c], edx
mov edx, dword [ebp - 0x20]
push edx
push 0x40ad30
push esi
push esi
mov dword [ebp - 0x128], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea ebx, [ebp - 0x34]
mov dword [ebp - 0x14], eax
call fcn.0041bb40
mov esi, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
lea ecx, [ebp - 4]
call esi
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x100]
push ecx
mov dword [ebp - 0x34], 0x420458
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x104]
call esi
lea ecx, [ebp - 0x108]
call esi
lea ecx, [ebp - 0x13c]
call dword [sym.imp.Ngs3.dll_public_virtual:_void___thiscall_CHanLib::destructor_void_]
mov ecx, dword [ebp - 0x164]
test ecx, ecx
je 0x4048df
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
jmp 0x4048df
test bl, bl
je 0x4048df
mov eax, 0xbc4
call fcn.004155d0
mov eax, dword [ebp - 0xe8]
test eax, eax
je 0x4048f0
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret