joyce8/EMBER2024-capa huggingface dataset:
Function at 0x621f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17e000]
push edi
or ebp, 0xffffffff
jmp 0x621f52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x621f59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x621f48
mov eax, 1
add ebx, ebx
jne 0x621f6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x621f7c
jne 0x621f9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x621f9b
dec eax
add ebx, ebx
jne 0x621f88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x621f60
add ebx, ebx
jne 0x621f97
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x621fed
xor ecx, ecx
sub eax, 3
jb 0x621fb3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x622022
sar eax, 1
mov ebp, eax
jmp 0x621fbe
add ebx, ebx
jne 0x621fbe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x621f8c
inc ecx
add ebx, ebx
jne 0x621fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x621f8c
add ebx, ebx
jne 0x621fd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x621fce
jne 0x621fea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x621fce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x62200c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x621ffe
jmp 0x621f4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x62200c
add edi, ecx
jmp 0x621f4e
pop esi
mov edi, esi
mov ecx, 0x3842
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x62202a
cmp byte [edi], 0x15
jne 0x62202a
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 0x62202f
lea edi, [esi + 0x21e000]
mov eax, dword [edi]
or eax, eax
je 0x6220a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2361a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x236268]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x62205c
mov ecx, edi
jns 0x62208b
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 + 0x236270]
or eax, eax
je 0x6220a1
mov dword [ebx], eax
add ebx, 4
jmp 0x622079
call dword [esi + 0x23626c]
mov ebp, dword [esi + 0x236274]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x6220db
sub esp, 0xffffff80
jmp 0x470a51
Function at 0x405a43
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c8d8
push 0x424078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x314
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
or dword [ebp - 0x20], 0xffffffff
and dword [ebp - 4], 0
push dword [ebp + 0x10]
call fcn.00404a74
pop ecx
mov dword [ebp - 0x20], eax
or dword [ebp - 4], 0xffffffff
jmp 0x405a93
movzx eax, byte [0x4316c0]
test eax, eax
je 0x405b6c
mov byte [ebp - 0x124], 0
push 0x103
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.004182a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x405b6c
lea eax, [ebp - 0x32c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x405b6c
cmp dword [ebp - 0x1c], 0xf2
ja 0x405b6c
lea eax, [ebp - 0x228]
push eax
push 0
push 0x42b54c
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x405b6c
push 0x42b550
lea eax, [ebp - 0x228]
push eax
call fcn.004183e0
pop ecx
pop ecx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push 0
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40c8d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424da8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x40c904
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x40c90a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40c9f9
mov eax, dword [0x42b5d4]
push eax
push 0x431740
mov ecx, dword [ebp + 8]
call fcn.0040f150
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [0x42b5d4]
je 0x40c9b0
mov edx, dword [ebp - 0x1c]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405db0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040c8d0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x40c984
mov dword [ebp - 0x20], 1
jmp 0x40c98b
mov dword [ebp - 0x20], 0
mov dl, byte [ebp - 0x20]
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00406627
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x40c9b0
xor al, al
jmp 0x40ca0f
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0x10
jb 0x40c9c9
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
jmp 0x40c9cf
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40c9e3
xor al, al
jmp 0x40ca0f
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x431718
call fcn.0040fa30
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
jmp 0x40ca0d
mov eax, dword [ebp - 0x24]
and eax, 0x410
jne 0x40ca07
xor al, al
jmp 0x40ca0f
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40dd20
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 5
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40dd91
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40dd87
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 8], 0
je 0x40dd9d
mov byte [ebp - 1], 1
jmp 0x40dda1
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x40ddb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424dc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x105c
call fcn.0041db50
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.00406627
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
jne 0x40debe
mov dword [ebp - 0x14], 0x1000
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1068]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x1068], 0
cmp dword [ebp - 0x10], 0
jne 0x40deb4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x40de9e
cmp dword [ebp - 0x18], 3
jbe 0x40de6e
jmp 0x40de9e
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1068]
push edx
lea ecx, [ebp - 0x64]
call fcn.0040ef40
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00405c2c
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00406627
jmp 0x40deb4
lea ecx, [ebp - 0x4c]
call fcn.004178e7
push 0x42c424
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0041b68d
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00406627
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040629d
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00406627
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40df20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.00406627
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x1a
je 0x40df87
cmp dword [ebp - 0x10], 0x1c
je 0x40dfc4
cmp dword [ebp - 0x10], 0x26
je 0x40e004
jmp 0x40e03b
push str.AppData
mov ecx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders]
push ecx
push 0x80000001
lea edx, [ebp - 0x70]
push edx
call fcn.0040ddb0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040ef80
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00406627
jmp 0x40e051
push str.Local_AppData
mov ecx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders]
push ecx
push 0x80000001
lea edx, [ebp - 0x88]
push edx
call fcn.0040ddb0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040ef80
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.00406627
jmp 0x40e051
movsx ecx, byte [str._ProgramFiles_]
test ecx, ecx
jne 0x40e018
mov dword [ebp - 0x1c], 0
jmp 0x40e028
push str._ProgramFiles_
call fcn.00418020
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
push str._ProgramFiles_
lea ecx, [ebp - 0x3c]
call fcn.0040644a
jmp 0x40e051
lea ecx, [ebp - 0x58]
call fcn.004178e7
push 0x42c424
lea eax, [ebp - 0x58]
push eax
call fcn.0041b68d
cmp dword [ebp - 0x28], 0x10
jb 0x40e065
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], edx
jmp 0x40e06b
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
push 0x104
lea ecx, [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40e0b5
lea eax, [ebp - 0x18c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405ba6
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00406627
mov eax, dword [ebp + 8]
jmp 0x40e0de
lea ecx, [ebp - 0x4c]
call fcn.004178e7
push 0x42c424
lea edx, [ebp - 0x4c]
push edx
call fcn.0041b68d
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00406627
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ed40
Capabilities:
Check for vm using instruction vpcext
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d6d8
push 0x424078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
xor ebx, ebx
mov ecx, 0x14
mov edx, 0x5658
in eax, dx
cmp eax, 0x20
jl 0x40ed9d
cmp eax, 0x4000
jg 0x40ed9d
mov eax, 2
or dword [ebp - 0x1c], eax
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
jmp 0x40edb9
mov dword [ebp - 4], 1
push ebx
xor eax, eax
xor ebx, ebx
inc eax
invalid
Function at 0x41f2bd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42fbc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.0041716e]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041e88b
mov dword [ebp - 0x14], eax
cmp dword [0x4312c4], edi
jne 0x41f3ae
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41f33b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41f48e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41f48e
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f48e
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4312c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4312c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4312cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4312d4], eax
test eax, eax
je 0x41f3ab
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4312d0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41f3d3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41f3c6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41f3e8
push 4
pop eax
jmp 0x41f490
cmp dword [ebp - 0x14], edi
je 0x41f3e8
push dword [0x4312c4]
call dword [fcn.00417172]
push 3
jmp 0x41f3cd
mov eax, dword [0x4312d0]
mov ebx, dword [fcn.00417172]
cmp eax, esi
je 0x41f446
cmp dword [0x4312d4], esi
je 0x41f446
push eax
call ebx
push dword [0x4312d4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41f446
test eax, eax
je 0x41f446
call ecx
test eax, eax
je 0x41f43b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41f43b
test byte [ebp - 8], 1
jne 0x41f446
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41f476
mov eax, dword [0x4312c8]
cmp eax, esi
je 0x41f473
push eax
call ebx
test eax, eax
je 0x41f473
call eax
mov edi, eax
test edi, edi
je 0x41f473
mov eax, dword [0x4312cc]
cmp eax, esi
je 0x41f473
push eax
call ebx
test eax, eax
je 0x41f473
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4312c4]
call ebx
test eax, eax
je 0x41f48e
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41f490
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041db33
leave
ret
Function at 0x41cfa4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41d5e0
call fcn.0041d268
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d004
cmp eax, 0xffffffff
je 0x41d004
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41cffd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41cffd
cmp edx, 0x10000000
jae 0x41cffd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41cffa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41d070
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41d0ae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41d0a6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41d0b0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41d096
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41d180
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41d1b1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d1b1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x41d1b1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1568ddd
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
mov esi, dword [esp + 0x28]
xor ebx, ebx
add ebx, dword [esp + 0x24]
je 0x1568e1b
mov ecx, 0x4b000
rdtsc
shr eax, 8
and eax, ebx
mov edi, eax
rdtsc
xor al, ah
and eax, ebx
mov dx, 0x280
mul dx
add edi, eax
add edi, ecx
jb 0x1568e19
cmp edi, 0x4b000
jg 0x1568e19
mov eax, dword [esi + edi*4]
mov dword [esi + ecx*4], eax
loop 0x1568def
popal
ret

Function at 0x85a8ec
Capabilities:
Encode data using xor

Disassembly:
jmp 0x85a8f6
or byte [eax], al
pop esp
or dword [eax], eax
add byte [eax], al
add byte [eax], al
pushal
call 0x85a8fc
pop ebp
sub ebp, 0x10
sub ebp, 0x45a8ec
jmp 0x85a912
cmc
or dword [eax + 0x45a8ec], edi
mov eax, 0x45a8ec
add eax, ebp
add eax, 0x4c
mov ecx, 0x5e9
mov edx, 0xcb1ade97
xor byte [eax], dl
inc eax
dec ecx
jne 0x85a929
jmp 0x85a93c
sbb al, 0x5a
sbb al, 0x1e
stosd dword es:[edi], eax
xchg edi, eax
xchg edi, eax
xchg edi, eax
push ss
push esi
outsd dx, dword [esi]
xchg edi, eax
xchg edi, eax
xchg edi, eax
xchg esp, eax
pop edx
das
xchg ecx, eax
xchg edi, eax
xchg edi, eax
xchg edi, eax
sub eax, 0x979797bf
pushal
jne 0x85a8ed
pop edi
sbb al, 0x16
wait
xchg edi, eax
xchg edi, eax
xchg edi, eax
xchg esp, eax
push edx
sbb dh, bl
mov bl, 0x6b
push ds
xchg ebx, eax
mov bl, 0xc7
dec ebx
daa
cdq
xchg edi, eax
inc dword [edi]
outsd dx, dword [esi]
mov eax, dword [0xb3bb9697]
call dword [eax + 0x63]
int1
push cs
jg 0x85a910
xchg edi, eax
xchg edi, eax
xchg edi, eax
jle 0x85a942
xchg edi, eax
xchg edi, eax
xchg edi, eax
ret 0x7b1c
Function at 0x6aa370
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 0x6aa38e
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 0x6d3074
push ecx
mov edi, eax
call fcn.006be198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6aa3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006be02e
push esi
call fcn.006bdfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6ad850
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 0x6ad8ae
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 0x6d8720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6ad8ba
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.006be1e1
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 0x6ad8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6d8720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6ad92a
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.006bf082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x6ad957
mov word [eax], si
add eax, 2
push eax
call fcn.006bf030
add esp, 4
jmp 0x6ad959
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 0x6ad8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6ad8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6ae0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6d3458
push ecx
call fcn.006be1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006be1e1
add esp, 0x10
jmp 0x6ae0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.006be20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.006bddff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.006ae050
mov eax, dword [0x6d8728]
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 0x6ae13b
push esi
call fcn.006adfb0
add esp, 4
mov dword [0x6d8728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x6ae14c
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.006adff0
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 0x6b1440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6b14b7
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 0x6b148e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6b1471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6b147e
add edx, ecx
cmp ebx, edx
jb 0x6b148a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6b1467
xor ecx, ecx
jmp 0x6b14a2
test eax, eax
jne 0x6b1492
xor ecx, ecx
jmp 0x6b14a2
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.006b13c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret