joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed75
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x230
push ebx
mov ebx, dword [esp + 0x244]
push esi
push 0x40
pop eax
cmp ebx, eax
jae 0x40ed8d
mov eax, ebx
push eax
push dword [esp + 0x248]
lea eax, [esp + 0x4c]
push eax
call fcn.00416c90
push 0xa8
lea eax, [esp + 0x140]
push 0
push eax
call fcn.00416660
add esp, 0x18
lea eax, [esp + 0x130]
push dword [esp + 0x240]
push dword [esp + 0x240]
push eax
call fcn.0040ecea
mov eax, dword [esp + 0x250]
xor edx, edx
push 0x14
dec eax
pop esi
div esi
add eax, 1
mov dword [esp + 0x18], eax
je 0x40ef36
mov eax, dword [esp + 0x254]
xor edx, edx
push ebp
dec eax
xor ebp, ebp
inc edx
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x14], edx
mov eax, edx
mov dword [esp + 0x1c], edx
shr eax, 0x18
lea esi, [esp + 0x138]
mov byte [esp + ebx + 0x4c], al
lea edi, [esp + 0x90]
mov eax, edx
mov byte [esp + ebx + 0x4f], dl
shr eax, 0x10
mov byte [esp + ebx + 0x4d], al
mov eax, edx
shr eax, 8
push 0x2a
mov byte [esp + ebx + 0x52], al
lea eax, [ebx + 4]
pop ecx
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x40ee54
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00406469
push 0
push 0
push 0x14
pop esi
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.0040ec42
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00416c90
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x13], 0
test eax, eax
je 0x40eef4
mov ebx, eax
push 0x2a
pop ecx
push 0x14
lea esi, [esp + 0x13c]
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00406469
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x1e4]
push eax
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.0040ec42
xor ecx, ecx
mov al, byte [esp + ecx + 0x24]
xor byte [esp + ecx + 0x38], al
inc ecx
cmp ecx, esi
jb 0x40eedb
sub ebx, 1
jne 0x40ee90
mov ebx, dword [esp + 0x250]
mov eax, dword [esp + 0x258]
sub eax, ebp
cmp eax, esi
jbe 0x40ef03
mov eax, esi
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x25c]
add eax, ebp
push eax
call fcn.00416c90
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x1c]
inc edx
add ebp, esi
mov dword [esp + 0x14], edx
cmp eax, dword [esp + 0x20]
jb 0x40ee04
pop edi
pop ebp
push 0x44
lea eax, [esp + 0x48]
push eax
call fcn.00405ac5
push esi
lea eax, [esp + 0x34]
push eax
call fcn.00405ac5
push esi
lea eax, [esp + 0x20]
push eax
call fcn.00405ac5
pop esi
pop ebx
add esp, 0x230
ret 0x1c
Function at 0x40f767
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x42922c]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x108]
push 0x40
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x42922c]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x40f868
cmp byte [ebp - 0x108], 0x4d
jne 0x40f868
cmp byte [ebp - 0x107], 0x5a
jne 0x40f868
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 0xcc]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x42922c]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x108]
mov ebx, 0x108
push ebx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x42922c]
mov ecx, edi
call esi
cmp eax, ebx
jne 0x40f868
cmp byte [ebp - 0x108], 0x50
jne 0x40f868
cmp byte [ebp - 0x107], 0x45
jne 0x40f868
cmp byte [ebp - 0x106], 0
jne 0x40f868
cmp byte [ebp - 0x105], 0
jne 0x40f868
cmp byte [ebp - 0xf0], 0xb
jne 0x40f868
cmp byte [ebp - 0xef], 1
jne 0x40f848
cmp dword [ebp - 0x94], 4
jbe 0x40f848
mov eax, dword [ebp - 0x70]
jmp 0x40f86a
cmp byte [ebp - 0xf0], 0xb
jne 0x40f868
cmp byte [ebp - 0xef], 2
jne 0x40f868
cmp dword [ebp - 0x84], 4
jbe 0x40f868
mov eax, dword [ebp - 0x60]
jmp 0x40f86a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4109f5
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x2a], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.00410724
cmp dword [ebx + 0x20], 0
je 0x410a2e
push dword [ebx + 0x20]
call fcn.0041a479
pop ecx
cmp dword [esp + 0x28], 0
jne 0x410a39
xor eax, eax
jmp 0x410a43
push dword [esp + 0x28]
call fcn.0041dc66
pop ecx
cmp dword [esp + 0x2c], 0
mov dword [ebx + 0x20], eax
jne 0x410a51
xor eax, eax
jmp 0x410a5b
push dword [esp + 0x2c]
call fcn.0041dc66
pop ecx
mov dword [ebx + 0x24], eax
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x410a90
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
push edi
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x2c]
xor esi, esi
push edi
push 0x40000000
push esi
push 0x42a2a0
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebx + 0x1c], 0
mov dword [ebx + 4], eax
pop edi
jne 0x410b18
cmp dword [ebx + 0x10], esi
jne 0x410b18
test ebp, ebp
je 0x410b2e
cmp dword [ebx + 0x24], esi
jne 0x410b2e
cmp dword [ebx + 0x20], esi
je 0x410b2e
push dword [ebx + 0x20]
mov ecx, ebx
call fcn.0041081e
mov esi, eax
test esi, esi
je 0x410b2e
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0041a479
pop ecx
jmp 0x410b2e
test eax, eax
je 0x410b2e
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x410f9a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x42b15c
push 1
push ebx
push 0x42b24c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4110cf
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push 0x42b23c
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x42922c]
call dword [esi]
test eax, eax
js 0x4110bb
cmp byte [ebp + 8], bl
je 0x411000
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x42922c]
call esi
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x42922c]
call esi
cmp dword [ebp + 0x18], ebx
je 0x411031
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x42922c]
call esi
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
cmp dword [ebp + 0x1c], ebx
jne 0x411048
push 0x429584
jmp 0x41104b
push dword [ebp + 0x1c]
push eax
call dword [0x42922c]
call esi
cmp dword [ebp + 0x20], ebx
je 0x41106f
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x42922c]
call esi
cmp dword [ebp + 0x14], ebx
je 0x41108a
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x42922c]
call esi
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x42922c]
call esi
test eax, eax
js 0x4110a8
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42922c]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42922c]
call esi
pop esi
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x41115d
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
ret 8
Function at 0x4111d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x42a4ac
push dword [esp + 0x18]
push dword [0x456d74]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4112eb
push esi
push dword [0x456d74]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4112eb
push esi
push dword [0x456d74]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4112eb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4112eb
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4112e3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4112dc
push edi
push esi
push eax
call fcn.00416c90
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4112d5
push ebp
push dword [esp + 0x14]
call fcn.00411136
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42922c]
call esi
test edi, edi
je 0x4112d5
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x4112c3
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x4112c3
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x42922c]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
jmp 0x4112ed
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x411a35
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00415690
cmp word [0x457d82], 0
je 0x411ad1
push esi
push 6
push dword [0x434604]
mov esi, 0x457d82
push esi
call fcn.00403919
push eax
call fcn.00407d9f
test eax, eax
jne 0x411ad0
push 0x456d80
call fcn.00411719
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.0040695c
lea eax, [ebp - 0x1024]
push eax
call fcn.0041a203
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00416660
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
leave
ret
Function at 0x411b15
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43461c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x411b60
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x46723c], ax
xor eax, eax
mov word [0x46723e], ax
mov dword [0x43461c], 0x46723c
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406817
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43460c
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x411d23
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00415690
cmp byte [0x458d88], 0
je 0x411dd1
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.004131a4
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411dd1
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411dc8
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x411dac
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040695c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x411e84
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00415690
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x411e9f
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x411eac
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x411f88
movzx eax, word [esi]
test ax, ax
je 0x411f88
push ebp
mov ebp, dword [esp + 0x201c]
push edi
mov dword [esp + 0x10], ebx
mov edi, eax
add esi, 2
cmp di, 0x3d
jne 0x411ef7
test ebp, ebp
je 0x411f03
test ebx, ebx
jne 0x411f03
test ecx, ecx
je 0x411eee
mov byte [ecx], 1
mov ebx, dword [esp + 0x201c]
jmp 0x411f27
cmp di, 0xd
je 0x411f3c
cmp di, 0xa
je 0x411f3f
mov eax, dword [esp + 0x201c]
mov word [eax], di
add eax, 2
mov edi, dword [esp + 0x202c]
mov dword [esp + 0x201c], eax
lea eax, [edi - 2]
cmp dword [esp + 0x10], eax
jge 0x411f37
movzx eax, word [esi]
inc dword [esp + 0x10]
mov edi, eax
test ax, ax
jne 0x411ed6
jmp 0x411f3f
mov byte [edx], 1
jmp 0x411f46
add esi, 2
mov edi, dword [esp + 0x202c]
mov eax, dword [esp + 0x201c]
xor ecx, ecx
mov word [eax], cx
test ebp, ebp
je 0x411f82
xor eax, eax
mov word [ebp], ax
test ebx, ebx
je 0x411f82
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.0040695c
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x411f8a
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18
Function at 0x4144b3
Capabilities:
Hide graphical window

Disassembly:
and dword [0x456d7c], 0
push 1
push dword [esp + 8]
mov byte [0x44f955], 1
mov byte [0x44f956], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401183
cmp dword [0x467228], 0
jne 0x4144f3
cmp byte [0x44f963], 0
je 0x4144fc
cmp dword [0x44f95c], 0
jne 0x41450f
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x4145e3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00415690
cmp byte [0x458d88], 0
je 0x414672
cmp word [0x458d8a], 0
je 0x414672
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x458d8a
call fcn.004131a4
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x414671
push dword [ebp + 8]
call fcn.0041a203
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4

Function at 0x414676
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00415690
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00406689
mov esi, eax
test esi, esi
je 0x4146ce
movzx ecx, word [esi]
push ecx
jmp 0x4146b9
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004067a5
test al, al
jne 0x4146b2
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
Function at 0x416153
Capabilities:
Parse pe header

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

Function at 0x428560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42858d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42858d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1112370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x111238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x113b074
push ecx
mov edi, eax
call fcn.01126198
mov esi, eax
add esp, 8
test esi, esi
jne 0x11123cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0112602e
push esi
call fcn.01125fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x1115850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x11158ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x1140720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x11158ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.011261e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x11158ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x1140720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x111592a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.01127082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x1115957
mov word [eax], si
add eax, 2
push eax
call fcn.01127030
add esp, 4
jmp 0x1115959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x11158ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x11158b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x1115ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1116080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x11160c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x113b458
push ecx
call fcn.011261e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.011261e1
add esp, 0x10
jmp 0x11160d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0112620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.01125dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.01116050
mov eax, dword [0x1140728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x111613b
push esi
call fcn.01115fb0
add esp, 4
mov dword [0x1140728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x111614c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.01115ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x1119440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x11194b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x111948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1119471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x111947e
add edx, ecx
cmp ebx, edx
jb 0x111948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1119467
xor ecx, ecx
jmp 0x11194a2
test eax, eax
jne 0x1119492
xor ecx, ecx
jmp 0x11194a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.011193c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x11198f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1119921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x1119946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x111996e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x1119993
push ecx
push esi
call fcn.011194c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret