joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.004330d0
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
call fcn.0040a8b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
call fcn.0040a350
cmp dword [ebp - 4], 0
je 0x43464c
mov eax, 1
jmp 0x43464e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x43a0b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ade80
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4caef0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x50]
call fcn.0040a290
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040a290
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00439e60
add esp, 8
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040a370
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040a350
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.00439e60
add esp, 8
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040a370
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.0040a350
push 0x3c
push 0
lea edx, [ebp - 0x4c]
push edx
call fcn.00497550
add esp, 0xc
mov dword [ebp - 0x4c], 0x3c
lea ecx, [ebp - 0x50]
call fcn.0040a8b0
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x10]
call fcn.0040a8b0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
movzx ecx, word [ebp + 0x14]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x48], 0x440
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x43a1d5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040a350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0040a350
mov eax, dword [ebp - 0x60]
jmp 0x43a1fa
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040a350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0040a350
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x43a210
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4caef0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401000
mov dword [ebp - 0x428], eax
push 0
push 0x26
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43a2ae
push str.Internet_ExplorerIEXPLORE.EXE
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x43a2ae
push 0xa
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00416eb0
add esp, 4
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00416eb0
add esp, 4
push eax
call fcn.0043a0b0
add esp, 0x10
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
je 0x43a2a7
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x43a2b0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004948e6
mov esp, ebp
pop ebp
ret
Function at 0x43a2c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.00497550
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x38], 0x400
mov dword [ebp - 0x30], 0x4bd97c
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x43a312
mov eax, dword [ebp + 8]
push eax
call fcn.0043a210
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x43a340
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad048
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4caef0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x4d5460
mov ecx, dword [ebp + 8]
call fcn.0040a390
mov ecx, dword [ebp + 8]
call fcn.0040a780
movzx eax, al
test eax, eax
jne 0x43a392
mov eax, 1
jmp 0x43a508
mov ecx, 0x4d57c8
call fcn.0043a320
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a2b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040a8b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040a760
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a740
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
push str.VERYFY_DLL
push 0x79
call fcn.0043f900
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x43a413
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040a350
mov eax, dword [ebp - 0x28]
jmp 0x43a508
jmp 0x43a42f
mov dword [ebp - 4], 0
jmp 0x43a44f
lea ecx, [ebp - 0x18]
call fcn.0040a8b0
push eax
call fcn.00404880
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 0
je 0x43a4d6
push str.GetCIDW
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x43a4d6
push 0x64
push 0x4d5460
call dword [ebp - 0x24]
test eax, eax
je 0x43a4d6
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x18]
call fcn.0040a8b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4d5460
mov ecx, dword [ebp + 8]
call fcn.0040a390
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040a350
mov eax, dword [ebp - 0x30]
jmp 0x43a508
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x18]
call fcn.0040a8b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040a350
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a9d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x44], 0
je 0x43a9ec
mov eax, 1
jmp 0x43aa80
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], eax
push 0x224
call fcn.00496492
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x43aa23
mov ecx, dword [ebp - 0xc]
call fcn.0043ccc0
mov dword [ebp - 0x14], eax
jmp 0x43aa2a
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x34], ecx
push 0x2710
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x34]
call fcn.0043ced0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x43a520
push 0
push 0
call fcn.004969a8
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x44], 1
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x43c100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad4bc
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.004a76e0
mov eax, dword [0x4caef0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1034], ecx
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x10], 0x800
xor eax, eax
mov word [ebp - 0x1014], ax
push 0xffe
push 0
lea ecx, [ebp - 0x1012]
push ecx
call fcn.00497550
add esp, 0xc
lea edx, [ebp - 0x1014]
push edx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1018]
call fcn.0040a2d0
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1020]
push ecx
lea ecx, [ebp - 0x1018]
call fcn.0040a5c0
mov dword [ebp - 0x1038], eax
push 0x4bd034
mov edx, dword [ebp - 0x1038]
push edx
call fcn.00435190
add esp, 8
mov byte [ebp - 0x1019], al
lea ecx, [ebp - 0x1020]
call fcn.0040a350
movzx eax, byte [ebp - 0x1019]
test eax, eax
je 0x43c1ea
push 0x4bd038
lea ecx, [ebp - 0x1018]
call fcn.00434e10
lea ecx, [ebp - 0x1024]
push ecx
mov ecx, 0x4d57c8
call fcn.00415160
mov dword [ebp - 0x103c], eax
mov edx, dword [ebp - 0x103c]
mov dword [ebp - 0x1040], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1040]
push eax
lea ecx, [ebp - 0x1018]
push ecx
lea edx, [ebp - 0x1028]
push edx
call fcn.00434ff0
add esp, 0xc
mov dword [ebp - 0x1044], eax
mov eax, dword [ebp - 0x1044]
mov dword [ebp - 0x1048], eax
mov byte [ebp - 4], 2
push 0x4bd03c
mov ecx, dword [ebp - 0x1048]
push ecx
lea edx, [ebp - 0x102c]
push edx
call fcn.004350a0
add esp, 0xc
mov dword [ebp - 0x104c], eax
mov eax, dword [ebp - 0x104c]
mov dword [ebp - 0x1050], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1050]
push ecx
lea ecx, [ebp - 0x1018]
call fcn.0040a370
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x102c]
call fcn.0040a350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1028]
call fcn.0040a350
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1024]
call fcn.0040a350
lea edx, [ebp - 0x1018]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040a2b0
mov eax, dword [ebp - 0x1030]
or eax, 1
mov dword [ebp - 0x1030], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
call fcn.0040a350
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004948e6
mov esp, ebp
pop ebp
ret 4
Function at 0x43c370
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad463
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4caef0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.00497550
add esp, 0xc
lea ecx, [ebp + 0x14]
call fcn.0040a8b0
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x4bd050
lea ecx, [ebp + 0x10]
call fcn.0040a8b0
push eax
lea ecx, [ebp + 0xc]
call fcn.0040a8b0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040a2d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a2b0
mov edx, dword [ebp - 0x224]
or edx, 1
mov dword [ebp - 0x224], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.0040a350
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.0040a350
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.0040a350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040a350
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004948e6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x43c490
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0043c100
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
call fcn.0040a8b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
call fcn.0040a350
cmp dword [ebp - 4], 0
je 0x43c4cf
mov eax, 1
jmp 0x43c4d1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x43cbe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4caef0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43cc2e
jmp 0x43cc4f
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 4]
test eax, eax
jne 0x43cc47
jmp 0x43cc4f
mov eax, dword [ebp - 0x214]
jmp 0x43cca6
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00497550
add esp, 0xc
push str.Microsoft.NETFramework64_v2.0.50727InstallUtil.exe
mov eax, dword [ebp - 0x218]
add eax, 0xc30
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43cca4
mov eax, 1
jmp 0x43cca6
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004948e6
mov esp, ebp
pop ebp
ret

Function at 0x43cfb0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x43cfc3
cmp dword [ebp + 0xc], 0
jne 0x43cfca
xor eax, eax
jmp 0x43d05d
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x14], 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x20], 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x28], 1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x30], 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x38], 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x10], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov esp, ebp
pop ebp
ret 8
Function at 0x43d360
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4caef0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x424]
call fcn.0043cf90
test eax, eax
je 0x43d3a5
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
push 4
mov ecx, dword [ebp - 0x424]
call fcn.0043d4c0
mov dword [ebp - 0x41c], 0
mov edx, dword [ebp - 0x424]
cmp dword [edx + 0x21c], 0
jne 0x43d488
lea eax, [ebp - 0x420]
push eax
push 0x400
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43d481
cmp dword [ebp - 0x420], 0
je 0x43d481
cmp dword [ebp + 0xc], 0xffffffff
je 0x43d42d
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x420]
push ecx
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x420]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x41c]
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x43d460
push 5
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x424]
call fcn.0043d500
mov ecx, dword [ebp - 0x41c]
add ecx, 1
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x10], 0
je 0x43d47f
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x14]
jb 0x43d47f
jmp 0x43d488
jmp 0x43d483
jmp 0x43d488
jmp 0x43d3c3
push 6
mov ecx, dword [ebp - 0x424]
call fcn.0043d4c0
mov eax, dword [ebp - 0x424]
xor ecx, ecx
cmp dword [eax + 0x21c], 0
sete cl
mov eax, ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004948e6
mov esp, ebp
pop ebp
ret 8
Function at 0x43e960
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4caef0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x43e985
mov eax, 1
jmp 0x43ebc4
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 8], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 5
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004948d0
add esp, 4
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.00497550
add esp, 0xc
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x43ea3c
mov dword [ebp - 0x84], 0
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
jmp 0x43eb90
mov dword [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x80], ax
push 0x62
push 0
lea ecx, [ebp - 0x7e]
push ecx
call fcn.00497550
add esp, 0xc
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x90]
push eax
push 0x4bba74
mov ecx, dword [ebp - 0x88]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x43ea9d
mov dword [ebp - 0x84], 0
mov edx, dword [ebp + 0x10]
mov dword [edx], 2
jmp 0x43eb90
mov dword [ebp - 0x94], 0
jmp 0x43eab8
mov ecx, dword [ebp - 0x14]
shr ecx, 2
cmp dword [ebp - 0x94], ecx
jae 0x43eb7d
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
movzx ecx, word [eax + edx*4 + 2]
push ecx
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
movzx ecx, word [eax + edx*4]
push ecx
push str.StringFileInfo_04x_04xFileDescription
push 0x32
lea edx, [ebp - 0x80]
push edx
call fcn.0043e7e0
add esp, 0x14
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jge 0x43eb1d
mov dword [ebp - 0x84], 0
jmp 0x43eb90
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x88]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x43eb50
mov dword [ebp - 0x84], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 3
jmp 0x43eb90
mov edx, dword [ebp - 0x10]
push edx
push 0x27
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00439db0
mov dword [ebp - 0x84], 1
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
jmp 0x43eb90
mov dword [ebp - 0x84], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
cmp dword [ebp - 0x88], 0
je 0x43ebbe
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00495979
add esp, 4
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004948e6
mov esp, ebp
pop ebp
ret
Function at 0x43f900
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12880
call fcn.004a76e0
mov eax, dword [0x4caef0]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43fa48
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x43fa48
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
shl edx, 2
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004948d0
add esp, 4
mov dword [ebp - 0x1287c], eax
mov ecx, dword [ebp - 0x1287c]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x12878]
call fcn.0043ed20
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x12878]
call fcn.0043f5c0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x43f9fd
mov dword [ebp - 0x12880], 0
lea ecx, [ebp - 0x12878]
call fcn.004086a0
mov eax, dword [ebp - 0x12880]
jmp 0x43fa4d
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x12878]
call fcn.004086a0
mov eax, 1
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004948e6
mov esp, ebp
pop ebp
ret
Function at 0x4402a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x4ac6eb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4caef0]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x4d6d88], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.00496c6f
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x44048d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44033e
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.00497550
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.0043ff90
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x4403a5
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x4c0f98
push eax
call fcn.00496567
add esp, 0xc
cmp eax, 1
jne 0x4403a5
mov eax, dword [ebp - 0x14]
mov dword [0x4d6d88], eax
jmp 0x440475
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4403bf
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x4403d3
push ebx
push esi
call fcn.004404c0
jmp 0x4403d5
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x4d6d88], eax
test eax, eax
jne 0x4403f7
push 0x4c423c
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.0049861b
push eax
lea edx, [ebp + 0x84]
push 0x4c0f98
push edx
mov edi, 1
call fcn.00494a34
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.004400d0
test eax, eax
jne 0x44046e
push 0x4c423c
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.0049861b
call fcn.00440170
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x4d6d88]
test esi, esi
je 0x44045f
call fcn.004405a0
mov dword [0x4d6d88], 0
jmp 0x440466
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x44046c
ret
mov eax, dword [0x4d6d88]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x44048d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x4d6d88
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.004948e6
add ebp, 0xc8
mov esp, ebp
pop ebp
ret