joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bc40
Capabilities:
Delete directory

Disassembly:
sub esp, 0x620
push ebx
push ebp
lea eax, [esp + 8]
push edi
push eax
xor ebx, ebx
push str.Count
mov dword [esp + 0x18], ecx
push str.UnInstallExt
mov dword [esp + 0x18], ebx
call fcn.0040bd00
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bx
rep stosd dword es:[edi], eax
mov cx, word [0x50b180]
mov word [esp + 0x430], bx
stosw word es:[edi], ax
mov word [esp + 0x20], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x432]
add esp, 0xc
rep stosd dword es:[edi], eax
mov ecx, 0x50b190
stosw word es:[edi], ax
call fcn.0040aaf0
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
push eax
lea edx, [esp + 0x428]
push 0x103
push edx
call ebp
lea eax, [esp + 0x430]
push ebx
push eax
call fcn.00433100
add esp, 0x14
test eax, eax
je 0x42bda6
cmp dword [esp + 0xc], ebx
jbe 0x42bd99
push esi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x224]
rep stosd dword es:[edi], eax
push str.ext_d
lea ecx, [esp + 0x20]
push 0x103
push ecx
call ebp
lea edx, [esp + 0x230]
push 0x104
lea eax, [esp + 0x2c]
push edx
push eax
push str.UnInstallExt
call fcn.0040bb80
add esp, 0x20
lea ecx, [esp + 0x220]
push 0x4f15ac
push ecx
call fcn.00423c70
mov ecx, eax
call fcn.00425ed0
mov esi, eax
push 0
push esi
call fcn.00433100
add esp, 8
test eax, eax
je 0x42bd8b
mov ecx, dword [esp + 0x14]
push esi
call fcn.0042c6b0
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jb 0x42bcfd
pop esi
push str.UnInstallExt
call fcn.0040b600
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x620
ret
Function at 0x42bdb0
Capabilities:
Delete directory

Disassembly:
sub esp, 0xa30
push ebx
push esi
mov esi, dword [esp + 0xa3c]
xor ebx, ebx
push 1
mov dword [esp + 0x10], ecx
push esi
mov dword [esp + 0x10], ebx
call fcn.00433100
add esp, 8
test eax, eax
je 0x42bfbc
push ebx
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0047bd60
add esp, 0xc
cmp eax, 1
je 0x42bfbc
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x42bfbc
push ebp
push edi
push ebx
push str.Count
push str.UnInstallExt
push eax
call fcn.0047c360
mov ebp, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x84a]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
mov word [esp + 0x848], bx
add esp, 0x10
rep stosd dword es:[edi], eax
push ebp
push 0x4efa28
lea ecx, [esp + 0x840]
push 0x104
push ecx
stosw word es:[edi], ax
call esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x232]
mov word [esp + 0x230], bx
rep stosd dword es:[edi], eax
mov dx, word [0x50b180]
mov ecx, 0x81
stosw word es:[edi], ax
xor eax, eax
lea edi, [esp + 0x43a]
mov word [esp + 0x438], dx
add esp, 0x10
rep stosd dword es:[edi], eax
test ebp, ebp
stosw word es:[edi], ax
jbe 0x42bfab
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x428]
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x224]
rep stosd dword es:[edi], eax
push str.ext_d
lea eax, [esp + 0x430]
push 0x103
push eax
call esi
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x230]
push 0x103
lea edx, [esp + 0x43c]
push ecx
push edx
push str.UnInstallExt
push eax
call fcn.0047c210
mov dx, word [0x50b180]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], dx
mov word [esp + 0x654], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x5e69bc]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x656]
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x658]
push 0x104
push ecx
push edx
stosw word es:[edi], ax
call fcn.00433110
add esp, 0x34
lea eax, [esp + 0x220]
lea ecx, [esp + 0x220]
lea edx, [esp + 0x630]
push eax
push ecx
push str.Extensions
push edx
push str._s_s_s_s.dll
lea eax, [esp + 0x2c]
push 0x103
push eax
call esi
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00433100
add esp, 0x24
test eax, eax
je 0x42bfa2
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
call fcn.0042c6b0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc ebx
cmp ebx, ebp
jb 0x42be93
lea edx, [esp + 0x10]
push 0
push edx
call fcn.0047bf60
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xa30
ret 4
Function at 0x42c190
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], si
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42c20f
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x104
push ecx
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x210]
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea ecx, [esp + 8]
cmp eax, ecx
mov eax, 1
je 0x42c211
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x42c260
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, 0x18a4
call fcn.004d2930
push esi
push edi
mov esi, ecx
call fcn.00425bb0
test eax, eax
je 0x42c27e
mov ecx, esi
call fcn.00425c40
xor edx, edx
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x866]
mov word [esp + 0x864], dx
mov word [esp + 0x44], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x65c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x65e]
mov word [esp + 0x454], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x456]
mov word [esp + 0x24c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x454]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x454]
push ecx
push str._sTheWorld_
lea edx, [esp + 0x254]
push 0x103
push edx
call esi
lea eax, [esp + 0x25c]
push eax
call fcn.004339c0
add esp, 0x14
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x44]
push ecx
push str._sInitExtAction.ini
push 0x103
push edx
call esi
add esp, 0x10
mov ecx, 0x50b190
call fcn.0040aaf0
push eax
lea eax, [esp + 0x660]
push 0x103
push eax
call esi
lea ecx, [esp + 0x50]
push 1
lea edx, [esp + 0x66c]
push ecx
push edx
call fcn.00434270
add esp, 0x18
lea eax, [esp + 0x44]
lea ecx, [esp + 0x864]
push eax
push 0x4ef6cc
push 7
push str._tp:
push str._s_d__s_s
push 0x823
push ecx
call esi
add esp, 0x1c
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea edx, [esp + 0x864]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x1c], 0x50b1f4
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
test eax, eax
je 0x42c417
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.UnInstallExt
call fcn.0040b600
push str.UpdateExt
call fcn.0040b600
add esp, 0x18ac
ret
Function at 0x42c670
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
push esi
call fcn.0042bdb0
push esi
mov ecx, edi
call fcn.00425590
push 0
push esi
call fcn.00433100
add esp, 8
test eax, eax
je 0x42c69c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
ret 4

Function at 0x42c6b0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, dword [esp + 0x214]
push 0
mov ebx, ecx
push esi
call fcn.00433100
add esp, 8
test eax, eax
je 0x42c726
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42c726
push edi
mov ecx, 0x81
lea edi, [esp + 0xe]
mov word [esp + 0xc], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x103
push eax
push esi
mov ecx, ebx
call fcn.0042c740
test eax, eax
pop edi
je 0x42c726
lea ecx, [esp + 8]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42c726
lea edx, [esp + 8]
push 0
push edx
call fcn.0048d520
add esp, 8
pop esi
pop ebx
add esp, 0x208
ret 4

Function at 0x42c7d0
Capabilities:
Move file

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, dword [esp + 0x214]
push edi
test esi, esi
mov ebx, ecx
je 0x42c8c3
cmp word [esi], 0
je 0x42c8c3
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
push 0
push esi
stosw word es:[edi], ax
call fcn.00433100
add esp, 8
test eax, eax
je 0x42c8a9
lea eax, [esp + 0xc]
push 0x103
push eax
push esi
mov ecx, ebx
call fcn.0042c740
test eax, eax
je 0x42c8c3
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0xc]
push 1
push ecx
push esi
call edi
test eax, eax
je 0x42c8c3
mov edx, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push 1
push edx
push eax
call fcn.00434270
add esp, 0xc
test eax, eax
je 0x42c893
push 0
push esi
call fcn.00433100
add esp, 8
test eax, eax
je 0x42c893
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.0048d520
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x208
ret 0xc
push 1
lea edx, [esp + 0x10]
push esi
push edx
call edi
pop edi
pop esi
pop ebx
add esp, 0x208
ret 0xc
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
push 1
push eax
push ecx
call fcn.00434270
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x208
ret 0xc
Function at 0x42ccc0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1084
call fcn.004d2930
push ebx
push ebp
mov ebp, dword [esp + 0x1090]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
je 0x42cdc9
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push ebp
call edi
add esp, 4
test eax, eax
jbe 0x42cdc9
mov esi, dword [esp + 0x109c]
cmp esi, ebx
je 0x42cdc9
push esi
call edi
add esp, 4
test eax, eax
jbe 0x42cdc9
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x4e]
mov word [esp + 0x4c], bx
rep stosd dword es:[edi], eax
push esi
push 0x4ef6cc
push ebp
push str._tmp:
push 1
push 0x4ef6f4
push 7
push str._tp:
stosw word es:[edi], ax
push str._s_d__s_d__s_s__s_s
lea eax, [esp + 0x70]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x40]
add esp, 0x2c
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x4c]
push edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x24], 0x50b1f4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42cdba
mov eax, dword [esp + 0x48]
push 0x186a0
push eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1084
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1084
ret 8
Function at 0x42ced0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x870
push ebx
push esi
push edi
xor esi, esi
mov ebx, dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x46a]
mov word [ebp - 0x46c], si
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x4f1a7c
lea eax, [ebp - 0x46c]
push 0x103
push eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [ebp - 0x264]
lea edx, [ebp - 0x46c]
mov word [ebp - 0x266], si
push ecx
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x42d0da
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x238]
push 0x4ef3e4
push eax
call edi
add esp, 8
test eax, eax
je 0x42d0b7
lea ecx, [ebp - 0x238]
push 0x4f1754
push ecx
call edi
add esp, 8
test eax, eax
je 0x42d0b7
test byte [ebp - 0x264], 0x10
je 0x42d010
mov dx, word [0x50b180]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x672]
mov word [ebp - 0x674], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x674]
push eax
push ebx
push 0x4ef368
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [ebp - 0x674]
push edx
call fcn.0042ced0
add esp, 0x18
cmp eax, esi
jne 0x42d0b7
mov dword [ebp - 0x14], esi
jmp 0x42d0d0
lea eax, [ebp - 0x238]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x42d0b5
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str..exe
push esi
call edi
add esp, 8
test eax, eax
je 0x42d05f
push str..dll
push esi
call edi
add esp, 8
test eax, eax
je 0x42d05f
push str..ocx
push esi
call edi
add esp, 8
test eax, eax
jne 0x42d0b5
mov cx, word [0x50b180]
xor eax, eax
mov word [ebp - 0x87c], cx
mov ecx, 0x81
lea edi, [ebp - 0x87a]
lea edx, [ebp - 0x238]
rep stosd dword es:[edi], eax
push edx
push ebx
stosw word es:[edi], ax
push 0x4ef368
lea eax, [ebp - 0x87c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [ebp - 0x87c]
push ecx
call fcn.004894d0
add esp, 0x18
test eax, eax
jne 0x42d0b5
mov dword [ebp - 0x14], eax
jmp 0x42d0d0
xor esi, esi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42cf5d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431a20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004317c0
mov eax, dword [esi + 4]
push 0x3f0
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [esi + 0x1874]
mov ecx, ebx
call fcn.0041c2c0
lea edx, [ebx + 0x5d4e0]
mov ecx, 0x412
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x214]
push ecx
push 0x4ef254
push 0x824
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov dx, word [0x50b180]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], dx
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebp, [esi + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x18]
push 0x4ee788
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebx + 0x5d0d0]
push ebp
mov ecx, 0x82
xor eax, eax
mov edi, edx
push 0x4ef254
push 0x104
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov esi, dword [esi + 4]
add esp, 0x10
mov ecx, ebx
mov dword [ebx + 0x269c], 0x431bf0
mov dword [ebx + 0x2698], esi
call fcn.0041c1f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x431f00
Capabilities:
Delete file

Disassembly:
sub esp, 0x61c
push ebx
push ebp
mov ebp, dword [esp + 0x62c]
push esi
test ebp, ebp
push edi
mov dword [esp + 0x10], 0
je 0x4320ca
mov ebx, dword [esp + 0x638]
test ebx, ebx
je 0x4320ca
mov eax, dword [esp + 0x63c]
test eax, eax
je 0x4320ca
push 0
push ebx
call fcn.00433100
add esp, 8
test eax, eax
jne 0x431f59
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret
mov dx, word [0x50b180]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], dx
mov word [esp + 0x21c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
push 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x5e69bc]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x224]
push eax
push ecx
call fcn.00433110
add esp, 0x10
lea edx, [esp + 0x21c]
lea eax, [esp + 0x424]
push str.Extensions
push edx
push 0x4ef9e0
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x438]
push ecx
call fcn.004339c0
add esp, 0x18
test eax, eax
je 0x4320ca
push ebp
call fcn.00423c70
mov ecx, eax
call fcn.00424c50
mov esi, eax
test esi, esi
je 0x432090
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
push 0x103
push edx
mov ecx, esi
stosw word es:[edi], ax
call fcn.0042b470
cmp word [esp + 0x14], 0
je 0x43205c
mov eax, dword [esp + 0x63c]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jl 0x43205c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x61c
ret
mov esi, dword [esi + 0xd4]
test esi, esi
je 0x432068
call esi
mov eax, dword [esp + 0x640]
test eax, eax
je 0x4320ca
mov ecx, dword [esp + 0x63c]
push ecx
push ebx
push ebp
call fcn.00431c10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret
push ebp
push ebx
call fcn.00423c70
mov ecx, eax
call fcn.0042ca00
mov esi, eax
test esi, esi
je 0x4320e0
mov edx, dword [esp + 0x630]
push 0
push edx
call dword [sym.imp.USER32.dll_EndDialog]
push ebx
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.0042aaf0
mov eax, dword [esp + 0x10]
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
and eax, 2
pop ebx
add esp, 0x61c
ret
mov eax, dword [esp + 0x63c]
push eax
push ebx
push ebp
call fcn.00431c10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret
Function at 0x432570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
cmp word [edi + 4], bx
lea eax, [edi + 4]
mov dword [ebp - 0x18], edi
jne 0x4325b4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4fbb14
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [ebp - 0x1c], esi
jne 0x4325e2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov ecx, edi
call fcn.004329d0
cmp eax, ebx
jne 0x43260b
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x7f]
mov byte [ebp - 0x80], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x64
lea eax, [ebp - 0x80]
push 1
push eax
call edi
add esp, 0x10
cmp eax, 0x64
jae 0x432654
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
lea ecx, [ebp - 0x14]
push 4
push ecx
mov dword [ebp - 0x14], ebx
call edi
add esp, 0x10
cmp eax, 1
jae 0x432687
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x14]
push esi
push eax
push 1
push ebx
call edi
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp eax, ecx
jae 0x4326bc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x18]
push ecx
push ebx
mov ecx, edi
call fcn.00432aa0
test eax, eax
push ebx
jne 0x4326ef
call fcn.004d2909
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004d2909
add esp, 4
mov ecx, edi
push esi
call fcn.00432b10
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4329d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
xor eax, eax
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov dword [esp + 0x15], eax
push edi
mov dword [esp + 0x1d], eax
push ebp
push 1
lea ecx, [esp + 0x20]
mov word [esp + 0x29], ax
push 0xc
push ecx
mov byte [esp + 0x28], 0
mov byte [esp + 0x33], al
call ebx
add esp, 0x10
mov ecx, 0xc
mov edi, str.TW.3_TAIHANG
lea esi, [esp + 0x18]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x432a21
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x432a3b
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
xor edx, edx
push ebp
mov dword [esp + 0x15], edx
push 1
lea eax, [esp + 0x18]
mov word [esp + 0x1d], dx
push 7
push eax
mov byte [esp + 0x20], 0
mov byte [esp + 0x27], dl
call ebx
add esp, 0x10
mov ecx, 7
mov edi, str.3.0.0.1
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x432a77
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x432a91
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4

Function at 0x432b10
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov edx, dword [ecx + 0x210]
push edi
xor edi, edi
mov dword [esp + 8], ecx
cmp edx, edi
jne 0x432b2a
mov dword [esp + 4], edi
jmp 0x432b39
mov eax, dword [ecx + 0x214]
sub eax, edx
sar eax, 2
mov dword [esp + 4], eax
cmp dword [esp + 4], edi
jle 0x432b83
push ebx
push ebp
push esi
jmp 0x432b48
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x210]
mov ebx, dword [eax + edi*4]
mov esi, dword [ebx + 0x18]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x20]
mov ebp, eax
push ecx
push 1
push esi
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
mov ecx, ebx
push esi
push ebp
call fcn.004324b0
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x432b44
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 4