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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432970
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x449048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041ccf3
add esp, 8
test eax, eax
jne 0x409e49
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0041d2d7
add esp, 4
mov edx, dword [ebp + 8]
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], str.FILE
mov ecx, dword [ebp - 0xdc]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
je 0x409ea8
mov eax, dword [ebp - 0xd0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x409ead
jmp 0x40a024
mov ecx, dword [ebp - 0xd0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x409efa
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0xcc], 0
jmp 0x40a024
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041829d
add esp, 4
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.00419f90
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc8]
push eax
call section..text
add esp, 0x10
mov dword [ebp - 0xf0], eax
push 0xb0
lea ecx, [ebp - 0xc4]
call sym.Adobe_Dreamweaver.exe_public:_void___thiscall_FileVersionInfo::__autoclassinit2_unsigned_int_
push 1
push 0x40
push 0x20
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.0040cb30
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.0040cd50
lea ecx, [ebp - 0xc4]
call fcn.0040cc40
lea ecx, [ebp - 0xc4]
call fcn.0040caa0
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0xd8]
push eax
call fcn.00418137
add esp, 4
cmp dword [ebp - 0xd8], 0
jne 0x409fe5
mov dword [ebp - 0xec], 0
jmp 0x409ffb
mov dword [ebp - 0xc8], 0x8123
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xc8], 0
mov edx, dword [ebp - 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.0040a040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418129
mov esp, ebp
pop ebp
ret
Function at 0x40a070
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x449048]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push 0x4342c0
push 1
push 0
push 0x4342e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x40a116
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 0x50]
call edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x40a108
lea eax, [ebp - 0xc]
push eax
push 0x4342d0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x40a108
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418129
mov esp, ebp
pop ebp
ret
Function at 0x40a840
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov byte [ebp - 1], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40a92e
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40a928
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ebp - 6], ax
add dword [ebp - 0xc], 2
cmp word [ebp - 6], 0
jne 0x40a877
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x24]
sar ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
lea eax, [edx + edx + 2]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00419f90
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ebp - 4], ax
mov ecx, dword [ebp - 0x10]
mov dx, word [ebp - 4]
mov word [ecx], dx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
cmp word [ebp - 4], 0
jne 0x40a8e1
mov edx, dword [ebp - 0x18]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [ebp - 1], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x40b960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x449048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040aeb0
add esp, 8
test eax, eax
je 0x40b98e
xor eax, eax
jmp 0x40ba2b
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.00419f90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edx, dword [0x4499a0]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ba02
push 0
push 0x4422f8
push 0x442300
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40ba2b
lea edx, [ebp - 0x20c]
push edx
call fcn.004036b0
add esp, 4
call fcn.00407f40
push 0x44b508
call fcn.0040ae50
add esp, 4
call dword [0x44ba64]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418129
mov esp, ebp
pop ebp
ret
Function at 0x40be30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449048]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x40be5a
jl 0x40be51
cmp dword [ebp + 0xc], 0
ja 0x40be5a
xor eax, eax
xor edx, edx
jmp 0x40bf91
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x40be7c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040c890
jmp 0x40bf91
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.0040e130
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x40beeb
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.0040bfb0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040e290
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040ef80
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0040e210
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x40bf82
mov ecx, dword [ebp - 0x10]
call fcn.0040dc40
mov dword [ebp - 0x24], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x40bf5b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0041e6d8
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x40bf59
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40bf91
jmp 0x40bf07
cmp dword [ebp - 8], 0
jbe 0x40bf82
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0041e6d8
add esp, 0x10
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418129
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x449048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x38], ecx
call fcn.0040eea0
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0040ef00
add esp, 8
movzx edx, al
test edx, edx
je 0x40c495
lea eax, [ebp + 8]
push eax
call fcn.0040eeb0
add esp, 4
jmp 0x40c612
mov ecx, dword [ebp - 0x38]
call fcn.0040e270
test eax, eax
je 0x40c4d7
mov ecx, dword [ebp - 0x38]
call fcn.0040e270
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.0040e1f0
cmp esi, eax
jae 0x40c4d7
lea ecx, [ebp + 8]
push ecx
call fcn.0040c630
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x38]
call fcn.0040e0a0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40c612
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x4c], 0
jne 0x40c4ea
call fcn.0040eea0
jmp 0x40c612
mov ecx, dword [ebp - 0x38]
call fcn.0040dc40
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x38], 0
jne 0x40c539
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0040c630
add esp, 4
movzx ecx, al
push ecx
call fcn.004099b0
add esp, 8
movzx edx, al
test edx, edx
je 0x40c529
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
jmp 0x40c531
call fcn.0040eea0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
jmp 0x40c612
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.0040c630
add esp, 4
mov byte [ebp - 0x2a], al
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x29]
push eax
lea ecx, [ebp - 0x2a]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
call fcn.0040da80
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40c590
cmp dword [ebp - 0x3c], 1
je 0x40c590
cmp dword [ebp - 0x3c], 3
je 0x40c5dd
jmp 0x40c60d
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x40], ecx
je 0x40c5c2
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.0041e0fe
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x40c5c2
call fcn.0040eea0
jmp 0x40c612
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2a]
cmp dword [ebp - 0x34], edx
je 0x40c5d6
mov eax, dword [ebp + 8]
jmp 0x40c612
call fcn.0040eea0
jmp 0x40c612
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2a]
push edx
call fcn.004099b0
add esp, 8
movzx eax, al
test eax, eax
je 0x40c600
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
jmp 0x40c608
call fcn.0040eea0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x40c612
call fcn.0040eea0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418129
mov esp, ebp
pop ebp
ret 4
Function at 0x40dcd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x449048]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x40dcf7
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40dcfe
mov al, 1
jmp 0x40ddd9
call fcn.0040eea0
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.0040eea0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.0040ef00
add esp, 8
movzx eax, al
test eax, eax
je 0x40dd3a
xor al, al
jmp 0x40ddd9
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x38]
call fcn.0040f0d0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40dd76
cmp dword [ebp - 0x34], 1
je 0x40dd7d
cmp dword [ebp - 0x34], 3
je 0x40ddcc
jmp 0x40ddd7
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x40ddac
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.0041e0fe
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40ddac
xor al, al
jmp 0x40ddd9
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40ddc0
mov dword [ebp - 0x3c], 1
jmp 0x40ddc7
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x40ddd9
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x40ddd9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418129
mov esp, ebp
pop ebp
ret
Function at 0x413f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ecx
push 3
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x413fa7
xor eax, eax
jmp 0x4140ce
cmp dword [ebp + 0x10], 0
jne 0x414048
movzx ecx, word [ebp + 0x14]
cmp ecx, 0xffff
jne 0x414048
mov edx, dword [ebp - 8]
mov dword [edx + 0x3e8], 0
mov eax, dword [ebp - 8]
push eax
push sym.Adobe_Dreamweaver.exe_protected:_static_int___stdcall_FileVersionInfo::EnumResourceNamesFuncFindFirst_void___wchar_t_const___wchar_t___long_int_
push 0x10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov edx, dword [ebp - 8]
cmp dword [edx + 0x3e8], 0
jne 0x414000
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4140ce
mov ecx, 0xffff
mov edx, dword [ebp - 8]
mov word [edx + 0x3ec], cx
mov eax, dword [ebp - 8]
push eax
push sym.Adobe_Dreamweaver.exe_protected:_static_int___stdcall_FileVersionInfo::EnumResourceLangFuncFindFirst_void___wchar_t_const___wchar_t_const___unsigned_short_int__long_int_
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3e8]
push edx
push 0x10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3e8]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 8]
mov cx, word [eax + 0x3ec]
mov word [ebp + 0x14], cx
movzx edx, word [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4140c2
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4140c2
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4140c2
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00412220
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x4140ce
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414220
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433254
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x449048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x414266
xor eax, eax
jmp 0x414384
push 0x6c
call fcn.0041814a
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0
je 0x414291
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.00414180
mov dword [ebp - 0x2c], eax
jmp 0x414298
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4142f0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x4142e2
push 1
mov ecx, dword [ebp - 0x30]
call fcn.004143a0
mov dword [ebp - 0x3c], eax
jmp 0x4142e9
mov dword [ebp - 0x3c], 0
xor eax, eax
jmp 0x414384
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x414333
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x414328
push 1
mov ecx, dword [ebp - 0x34]
call fcn.004143a0
mov dword [ebp - 0x40], eax
jmp 0x41432f
mov dword [ebp - 0x40], 0
xor eax, eax
jmp 0x414384
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
and edx, 0xffff
movzx eax, dx
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + edx]
and edx, 0xffff
movzx ecx, dx
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418129
mov esp, ebp
pop ebp
ret

Function at 0x418f35
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x418f74
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418f74
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418f74
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x418f74
cmp dword [ecx + 0x74], 0xe
jbe 0x418f74
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4254a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00425323
Function at 0x4320f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43211d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43211d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x427650
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [0x508824]
push esi
push edi
mov dword [ebp - 0x18], ebx
lea ecx, [ebx + 0x18]
call fcn.00427100
test edx, edx
ja 0x42780b
jb 0x42767c
test eax, eax
jne 0x42780b
mov al, byte [ebx + 0x10]
test al, al
je 0x42780b
mov edx, dword [0x509180]
test edx, edx
jne 0x4277f3
mov eax, dword fs:[0x30]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0xa3ddef07
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax]
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x30]
add ecx, 0xfffffff8
test esi, esi
je 0x4276ef
movzx ebx, cx
xor esi, esi
shr ebx, 1
mov edi, 0x5c168ac8
lea ecx, [edx + ebx*2]
cmp edx, ecx
cmova ebx, esi
test ebx, ebx
je 0x4276e8
movsx ecx, byte [edx]
lea edx, [edx + 2]
xor ecx, edi
inc esi
imul edi, ecx, 0x1000193
cmp esi, ebx
jne 0x4276d5
mov esi, dword [ebp - 4]
cmp edi, esi
jne 0x42775b
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x10], esi
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + esi + 0x78]
mov ecx, dword [ecx + esi + 0x7c]
mov dword [ebp - 0x14], ecx
lea ecx, [edx + esi]
mov dword [ebp - 0xc], ecx
cmp ecx, esi
je 0x427758
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x427758
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop dword [eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x5c168ac8
mov cl, byte [edx]
inc edx
test cl, cl
je 0x42774a
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x427735
mov ecx, dword [ebp - 8]
cmp esi, ecx
je 0x427762
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x427720
mov esi, dword [ebp - 4]
mov eax, dword [eax]
jmp 0x4276b0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea edx, [eax + ecx*4]
mov edx, dword [edx + esi]
add edx, esi
cmp edx, ebx
jbe 0x4277ea
mov eax, dword [ebp - 0x14]
add eax, ebx
cmp edx, eax
jae 0x4277ea
mov al, byte [edx]
mov esi, 0x5c168ac8
mov dword [ebp - 4], esi
mov ecx, esi
mov dword [ebp - 8], ecx
cmp al, 0x2e
je 0x4277b5
nop dword [eax]
movsx eax, al
inc edx
xor eax, esi
imul esi, eax, 0x1000193
mov al, byte [edx]
cmp al, 0x2e
jne 0x4277a0
mov dword [ebp - 4], esi
mov al, byte [edx + 1]
inc edx
test al, al
je 0x4277d7
nop dword [eax]
movsx eax, al
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0x1000193
mov al, byte [edx]
test al, al
jne 0x4277c0
mov dword [ebp - 8], ecx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
jmp 0x4276b0
mov ebx, dword [ebp - 0x18]
mov dword [0x509180], edx
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004469b0
push eax
call edx
push 0
call dword [sym.imp.KERNEL32.DLL_ExitThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret