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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp eax, 0xffffffdf
mov eax, ecx
cmp eax, 0x4ff76f3b
mov eax, 0xbba825be
cmp eax, 0x1b
mov eax, ebx
cmp eax, 0x39
cmp eax, 0x5dd6d217
inc eax
inc eax
mov eax, 0xe733bf6a
mov eax, 0xdca21bfe
inc eax
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
mov eax, 0xa7fb2599
inc eax
mov eax, ecx
cmp eax, 0xffffffb2
cmp eax, 0x62
cmp eax, 0xfffffffd
mov eax, ecx
cmp eax, 0x17
mov eax, 0x9622555c
inc eax
mov eax, ebx
inc eax
cmp eax, 0x9336b929
mov eax, ebx
cmp eax, 0x13
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x7a86e602
mov eax, 0x4e43dd35
cmp eax, 0x9c8eebfa
cmp eax, 0xffffffe1
mov eax, ebx
mov eax, ecx
cmp eax, 0xffffffbf
mov eax, 0x1e1dd132
inc eax
cmp eax, 0xffffffb9
nop
cmp eax, 0xffffffe1
nop
mov eax, ebx
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc eax
cmp eax, 0x1748b334
cmp eax, 0xc2e1f367
inc eax
nop
mov eax, ecx
mov eax, ecx
nop
mov eax, ebx
mov eax, ebx
cmp eax, 0x579360e
mov eax, 0x9f65e906
nop
cmp eax, 0xffffffe9
cmp eax, 3
nop
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
mov eax, 0x53a0c21
inc eax
inc eax
cmp eax, 0x44
nop
cmp eax, 0x57490c50
mov eax, 0xf8e4f470
mov eax, ebx
mov eax, 0x21ed35a8
cmp eax, 0xffffffe5
nop
mov eax, ecx
cmp eax, 0x68228cd8
inc eax
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
inc eax
nop
mov eax, ecx
mov eax, ecx
mov eax, ebx
nop
nop
cmp eax, 0xffffff80
cmp eax, 0x67
inc eax
mov eax, 0x4ad5f428
inc eax
inc eax
cmp eax, 0xffffffe8
mov eax, 0x9fc286ca
mov eax, 0xebfc3347
mov eax, ecx
inc eax
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1001e770
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001e5e6

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x410675
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x44a1f8]
test esi, esi
jne 0x410693
mov ecx, 0x44a1f0
call fcn.00410600
mov esi, dword [0x44a1f8]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x4106de
test esi, esi
je 0x410702
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x434278]
call esi
test eax, eax
jne 0x410726
push str.CryptProtectMemory_failed
mov esi, 0x4430c4
push esi
call fcn.004076c9
pop ecx
pop ecx
mov ecx, esi
call fcn.00407851
push 2
mov ecx, esi
call fcn.004076c4
jmp 0x410726
mov esi, dword [0x44a1fc]
test esi, esi
je 0x410702
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x434278]
call esi
test eax, eax
jne 0x410726
push str.CryptUnprotectMemory_failed
jmp 0x4106bf
push ebx
call dword [0x434058]
xor edx, edx
mov ebx, eax
cmp dword [ebp + 0xc], edx
jbe 0x410725
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x4b]
add al, dl
lea ecx, [edx + esi]
xor byte [ecx], al
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x410715
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x41aec5
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.0041abf4
cmp dword [ebx + 0x20], 0
je 0x41aefe
push dword [ebx + 0x20]
call fcn.00425069
pop ecx
cmp dword [esp + 0x28], 0
jne 0x41af09
xor eax, eax
jmp 0x41af13
push dword [esp + 0x28]
call fcn.00428868
pop ecx
cmp dword [esp + 0x2c], 0
mov dword [ebx + 0x20], eax
jne 0x41af21
xor eax, eax
jmp 0x41af2b
push dword [esp + 0x2c]
call fcn.00428868
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 0x41af60
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 0x4355f0
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebx + 0x1c], 0
mov dword [ebx + 4], eax
pop edi
jne 0x41afe8
cmp dword [ebx + 0x10], esi
jne 0x41afe8
test ebp, ebp
je 0x41affe
cmp dword [ebx + 0x24], esi
jne 0x41affe
cmp dword [ebx + 0x20], esi
je 0x41affe
push dword [ebx + 0x20]
mov ecx, ebx
call fcn.0041acee
mov esi, eax
test esi, esi
je 0x41affe
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.00425069
pop ecx
jmp 0x41affe
test eax, eax
je 0x41affe
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 0x41b46a
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 0x4364dc
push 1
push ebx
push 0x4365cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41b59f
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push 0x4365bc
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x434278]
call dword [esi]
test eax, eax
js 0x41b58b
cmp byte [ebp + 8], bl
je 0x41b4d0
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 [0x434278]
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 [0x434278]
call esi
cmp dword [ebp + 0x18], ebx
je 0x41b501
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 [0x434278]
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 0x41b518
push 0x4345f4
jmp 0x41b51b
push dword [ebp + 0x1c]
push eax
call dword [0x434278]
call esi
cmp dword [ebp + 0x20], ebx
je 0x41b53f
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 [0x434278]
call esi
cmp dword [ebp + 0x14], ebx
je 0x41b55a
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 [0x434278]
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 [0x434278]
call esi
test eax, eax
js 0x41b578
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x434278]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x434278]
call esi
pop esi
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x41becf
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041fe20
cmp word [0x452892], 0
je 0x41bf6b
push esi
push 6
push dword [0x440724]
mov esi, 0x452892
push esi
call fcn.0040d687
push eax
call fcn.00413308
test eax, eax
jne 0x41bf6a
push 0x451890
call fcn.0041bbe9
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.00411908
lea eax, [ebp - 0x1024]
push eax
call fcn.00424df3
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00421000
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 0x41c240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041fe20
cmp byte [0x453898], 0
je 0x41c2ee
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041d6b4
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 0x41c2ee
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 0x41c2e5
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41c2c9
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.00411908
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
leave
ret 8
Function at 0x41e75f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1040
call fcn.0041fe20
push ebx
push esi
mov esi, dword [esp + 0x1050]
xor ebx, ebx
cmp word [esi], bx
je 0x41e9b8
push esi
call fcn.00424df3
pop ecx
cmp eax, 0x7f6
jae 0x41e9b8
push edi
push 0x3c
pop edi
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00421000
mov dl, byte [esp + 0x1068]
add esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0x1c0
test dl, dl
je 0x41e7c1
mov dword [esp + 0x14], 0x5c0
movzx eax, word [esi]
push ebp
push 0x22
pop ecx
cmp ax, cx
mov edi, eax
mov ecx, ebx
jne 0x41e7e2
lea ebp, [esi + 2]
mov dword [esp + 0x24], ebp
push 0x22
pop eax
cmp di, ax
jne 0x41e807
jmp 0x41e7f2
mov ebp, esi
mov dword [esp + 0x24], ebp
jmp 0x41e82b
push 0x22
pop eax
cmp di, ax
je 0x41e800
inc ecx
movzx eax, word [esi + ecx*2]
mov edi, eax
test ax, ax
jne 0x41e7ea
jmp 0x41e807
push 0x20
pop eax
mov word [esi + ecx*2], ax
push 0x20
pop edi
lea eax, [esi + 2]
lea eax, [eax + ecx*2]
cmp word [esi + ecx*2], di
je 0x41e990
cmp word [eax], 0x2f
je 0x41e996
inc ecx
movzx eax, word [esi + ecx*2]
mov edi, eax
test ax, ax
jne 0x41e7d8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41e83d
cmp word [eax], bx
jne 0x41e852
test dl, dl
jne 0x41e852
cmp word [0x45489a], bx
je 0x41e852
mov dword [esp + 0x28], 0x45489a
mov eax, dword [esp + 0x105c]
push ebp
mov dword [esp + 0x34], eax
call fcn.0040cd3c
mov edi, eax
pop ebp
test edi, edi
je 0x41e881
push str..inf
push edi
call fcn.004132e6
test eax, eax
jne 0x41e881
mov dword [esp + 0x1c], 0x43644c
push dword [esp + 0x20]
call fcn.0040b4a1
test al, al
je 0x41e8a9
push 0x800
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x28]
call fcn.0040cab4
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41e9b7
mov esi, dword [esp + 0x1050]
cmp byte [0x452890], bl
jne 0x41e8dc
cmp byte [esp + 0x105c], bl
jne 0x41e8dc
cmp byte [0x461cd8], bl
je 0x41e94b
test esi, esi
je 0x41e8f5
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41e8f5
push ebx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov bl, 1
push 0x7d0
push dword [esp + 0x4c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [esp + 0x48]
call fcn.0041ec0b
cmp byte [0x461cd8], 0
je 0x41e94b
cmp byte [esp + 0x105c], 0
jne 0x41e94b
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x4c]
call dword [0x434148]
test eax, eax
je 0x41e94b
mov eax, dword [esp + 0xc]
cmp eax, dword [0x461cdc]
jbe 0x41e944
mov dword [0x461cdc], eax
mov byte [0x461cd9], 1
push dword [esp + 0x48]
call dword [0x434018]
test edi, edi
je 0x41e968
push str..exe
push edi
call fcn.004132e6
test eax, eax
je 0x41e99f
cmp byte [0x452890], 0
mov al, byte [esp + 0x105c]
je 0x41e9a6
test al, al
jne 0x41e9a6
cmp byte [0x461cd8], al
jne 0x41e9a6
mov dword [0x461ce0], 0x1b58
jmp 0x41e9a6
xor edi, edi
mov word [esi + ecx*2], di
mov dword [esp + 0x28], eax
jmp 0x41e834
mov al, byte [esp + 0x105c]
test bl, bl
je 0x41e9b7
test al, al
je 0x41e9b7
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add esp, 0x1040
ret 0x10
Function at 0x41eb1b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041fe20
cmp byte [0x453898], 0
je 0x41ebaa
cmp word [0x45389a], 0
je 0x41ebaa
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x45389a
call fcn.0041d6b4
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 0x41eba9
push dword [ebp + 8]
call fcn.00424df3
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_1]
pop esi
leave
ret 4

Function at 0x4209ab
Capabilities:
Parse pe header

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

Function at 0x433160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43318d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43318d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x975370
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 0x97538e
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 0x99e074
push ecx
mov edi, eax
call fcn.00989198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9753cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0098902e
push esi
call fcn.00988fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x978850
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 0x9788ae
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 0x9a3720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9788ba
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.009891e1
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 0x9788ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x9a3720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x97892a
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.0098a082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x978957
mov word [eax], si
add eax, 2
push eax
call fcn.0098a030
add esp, 4
jmp 0x978959
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 0x9788ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9788b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x978ff0
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 0x979080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9790c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x99e458
push ecx
call fcn.009891e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009891e1
add esp, 0x10
jmp 0x9790d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0098920b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00988dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00979050
mov eax, dword [0x9a3728]
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 0x97913b
push esi
call fcn.00978fb0
add esp, 4
mov dword [0x9a3728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x97914c
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.00978ff0
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 0x97c440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x97c4b7
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 0x97c48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x97c471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x97c47e
add edx, ecx
cmp ebx, edx
jb 0x97c48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x97c467
xor ecx, ecx
jmp 0x97c4a2
test eax, eax
jne 0x97c492
xor ecx, ecx
jmp 0x97c4a2
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.0097c3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x97c8f0
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 0x97c921
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 0x97c946
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 0x97c96e
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 0x97c993
push ecx
push esi
call fcn.0097c4c0
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