joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013c6
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x408], 0
push ebx
push esi
push edi
push str.IsWow64Process
push str.kernel32
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401412
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x408]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40150d
push 0x3ff
lea eax, [ebp - 0x403]
mov dword [ebp - 0x410], 7
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.004075d0
add esp, 0xc
mov dword [ebp - 0x40c], 0x400
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x418]
mov esi, eax
call edi
test esi, esi
jne 0x40150d
mov eax, dword [ebp - 0x40c]
lea esi, [ebp - 0x404]
and dword [ebp - 0x414], 0
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x40150d
push ebx
push esi
call fcn.00403300
pop ecx
pop ecx
test eax, eax
jne 0x40155a
push esi
call fcn.00403270
mov ecx, dword [ebp - 0x414]
inc ecx
add ecx, eax
push esi
mov dword [ebp - 0x414], ecx
call fcn.00403270
inc eax
add esi, eax
mov eax, dword [ebp - 0x41c]
pop ecx
pop ecx
cmp dword [ebp - 0x414], eax
jb 0x4014d2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x408]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call esi
test eax, eax
jne 0x401561
mov ecx, dword [ebp - 0x414]
mov edx, ebx
call fcn.0040122d
push dword [ebp - 0x414]
test eax, eax
je 0x40155f
call edi
xor eax, eax
inc eax
jmp 0x4015aa
call edi
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x408]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call esi
test eax, eax
jne 0x4015a8
mov ecx, dword [ebp - 0x414]
mov edx, ebx
call fcn.0040122d
push dword [ebp - 0x414]
test eax, eax
jne 0x401558
call edi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403259
mov esp, ebp
pop ebp
ret
Function at 0x4015bb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 1
push edi
push esi
call fcn.00403270
pop ecx
cmp byte [eax + esi - 1], 0x5c
je 0x4015df
mov word [eax + esi], 0x5c
mov ebx, dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, str.LMIR
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call fcn.00403270
mov edi, eax
pop ecx
cmp edi, 4
jbe 0x401608
push 4
pop edi
push esi
call fcn.00403270
mov esi, dword [ebp - 4]
add edi, eax
pop ecx
add edi, ebx
push esi
push str._04X.tmp
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push str.LMIR
inc esi
call fcn.00403270
add esp, 0x10
mov ecx, edi
sub ecx, eax
call fcn.004013c6
test eax, eax
jne 0x401657
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401668
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40165f
cmp esi, 0xffff
jl 0x401616
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
jmp 0x401661

Function at 0x40166d
Capabilities:
Create directory

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push str.SHGetSpecialFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40168e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4016db
push 0
push 0x1c
push ebx
push 0
call eax
test eax, eax
je 0x401683
push 0x412f50
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Applet
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4016cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401683
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.00403270
pop ecx
pop edi
pop ebx
ret
Function at 0x4016de
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x114], esi
mov ebx, edx
cmp dword [edi], 2
jge 0x4017de
mov byte [ebx], 0
mov byte [esi], 0
cmp dword [edi], 0
jne 0x401741
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401733
mov edx, eax
mov ecx, ebx
call fcn.0040166d
test eax, eax
jne 0x401751
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40174d
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4017ca
cmp eax, 0x103
ja 0x4017ca
push esi
mov ecx, ebx
call fcn.004015bb
pop ecx
test eax, eax
jne 0x40176a
push 2
pop eax
jmp 0x4017cd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x4017dc
push ebx
call esi
push str.MoveFileExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x104
push dword [ebp - 0x114]
mov esi, eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x110]
xor edx, edx
push esi
push eax
inc edx
xor ecx, ecx
call section..text
mov esi, dword [ebp - 0x114]
pop ecx
pop ecx
push 3
pop eax
jmp 0x4017cd
xor eax, eax
inc eax
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, 2
jl 0x40170c
jmp 0x4017de
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403259
mov esp, ebp
pop ebp
ret
Function at 0x401bac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
pop eax
mov ebx, edx
mov word [ebp - 8], ax
xor eax, eax
xor esi, esi
push esi
push 0x80
cmp byte [ebx], al
setne al
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0x40000000
push str.params.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c49
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x401c42
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push ebx
push edi
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403259
mov esp, ebp
pop ebp
ret

Function at 0x401c5a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.logo.bmp
test ecx, ecx
je 0x401c7b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401c7b
xor eax, eax
inc eax
jmp 0x401d08
push 0xa
push 0x2711
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [0x415e64], eax
test eax, eax
je 0x401c99
call fcn.004018a6
jmp 0x401c9b
mov eax, edi
test eax, eax
je 0x401d08
mov ecx, dword [0x415e68]
mov eax, dword [0x415e70]
cmp ecx, 0x36
jb 0x401cf2
mov edx, 0x4d42
cmp word [eax], dx
jne 0x401cf2
cmp dword [eax + 2], ecx
jne 0x401cf2
cmp dword [eax + 0xe], 0x28
je 0x401cd0
cmp dword [eax + 0xe], 0x6c
je 0x401cd0
cmp dword [eax + 0xe], 0x7c
jne 0x401cf2
cmp dword [eax + 0x12], 0x4e
jne 0x401cf2
cmp dword [eax + 0x16], 0x20
je 0x401ce2
cmp dword [eax + 0x16], 0xffffffe0
jne 0x401cf2
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401917
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004018ea
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401d0b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.rescue.ico
test ecx, ecx
je 0x401d29
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401d29
xor eax, eax
inc eax
jmp 0x401d73
push 0xa
push 0x2716
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [0x415e64], eax
test eax, eax
je 0x401d47
call fcn.004018a6
jmp 0x401d49
mov eax, edi
test eax, eax
je 0x401d71
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401917
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004018ea
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x402d4e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040a8e0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea edi, [esi + 0x10]
cmp ebx, 0x1c
jb 0x402e64
cmp dword [esi], 0x80000001
jne 0x402e64
and dword [ebp - 0x100c], 0
cmp dword [esi + 4], 0
jbe 0x402e53
mov edx, dword [edi]
mov ecx, edx
jmp 0x402da2
cmp byte [esi + ecx], 0
je 0x402dac
inc ecx
mov dword [ebp - 0x1008], ecx
cmp ebx, ecx
ja 0x402d9b
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
cmp ebx, eax
jb 0x402e64
cmp ebx, ecx
je 0x402e64
lea eax, [edx + esi]
mov byte [ebp - 0x1004], 0
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 0x1010], ecx
cmp ecx, 0xffffffff
je 0x402e64
push 0
lea eax, [ebp - 0x1008]
push eax
push dword [edi + 8]
mov eax, dword [edi + 4]
add eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402e58
mov eax, dword [ebp - 0x1008]
cmp eax, dword [edi + 8]
jne 0x402e58
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x100c]
add edi, 0xc
inc eax
mov dword [ebp - 0x100c], eax
cmp eax, dword [esi + 4]
jb 0x402d95
xor eax, eax
inc eax
jmp 0x402e6e
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403259
mov esp, ebp
pop ebp
ret
Function at 0x4077ff
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004040b5
mov dword [ebp - 0x14], eax
cmp dword [0x415e34], esi
jne 0x4078f2
push 0x800
push esi
push 0x4100d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40787f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4079d2
push esi
push esi
push 0x4100d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4079d2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4079d2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x415e34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x415e38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x415e3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x415e44], eax
test eax, eax
je 0x4078ef
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x415e40], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x407917
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40790a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40792c
push 4
pop eax
jmp 0x4079d4
cmp dword [ebp - 0x14], esi
je 0x40792c
push dword [0x415e34]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x407911
mov eax, dword [0x415e40]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40798a
cmp dword [0x415e44], edi
je 0x40798a
push eax
call ebx
push dword [0x415e44]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40798a
test eax, eax
je 0x40798a
call ecx
test eax, eax
je 0x40797f
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 0x40797f
test byte [ebp - 8], 1
jne 0x40798a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4079ba
mov eax, dword [0x415e38]
cmp eax, edi
je 0x4079b7
push eax
call ebx
test eax, eax
je 0x4079b7
call eax
mov esi, eax
test esi, esi
je 0x4079b7
mov eax, dword [0x415e3c]
cmp eax, edi
je 0x4079b7
push eax
call ebx
test eax, eax
je 0x4079b7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x415e34]
call ebx
test eax, eax
je 0x4079d2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4079d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403259
mov esp, ebp
pop ebp
ret
Function at 0x4031fc
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x401ba0
call fcn.00403408
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x40324f
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x40324f
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x403267
cmp ecx, 0x20b
je 0x403254
mov dword [ebp - 0x60], ebx
jmp 0x40327b
cmp dword [eax + 0x84], 0xe
jbe 0x40324f
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x403275
cmp dword [eax + 0x74], 0xe
jbe 0x40324f
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x46fc04], edi
mov dword [0x46fc08], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x46fbfc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x46fbf8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x46fc0c], eax
call fcn.00403404
cmp dword [0x46f7c8], ebx
jne 0x4032d8
push fcn.00403404
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004033f2
push 0x404010
push 0x40400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x46fbf4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [0x46fbf0]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x74], eax
push 0x404008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp byte [eax], 0x22
jne 0x403363
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x403343
cmp cl, 0x22
jne 0x403334
cmp byte [eax], 0x22
jne 0x40334c
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x403357
cmp cl, 0x20
jbe 0x403348
test byte [ebp - 0x30], 1
je 0x40336e
movzx ecx, word [ebp - 0x2c]
jmp 0x403371
cmp byte [eax], 0x20
jbe 0x40334c
inc eax
mov dword [ebp - 0x78], eax
jmp 0x403363
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00402890
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x60], ebx
jne 0x40338f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4033cb
mov eax, esi
jmp 0x4033df
call fcn.00403443
ret

Function at 0x710c72
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x7109ec
inc ebx
call fcn.00710ca8
mov ebx, 0x524f9ace
add eax, ebx
xor dword [edi], edx
sub eax, 0xef8a4763
add edi, 1
mov eax, 0xa35bea3
cmp edi, ecx
jne fcn.00710c72
add ebx, eax
sub eax, 0xde24cb8e
ret
Function at 0xab8370
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 0xab838e
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 0xae1074
push ecx
mov edi, eax
call fcn.00acc198
mov esi, eax
add esp, 8
test esi, esi
jne 0xab83cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00acc02e
push esi
call fcn.00acbfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xabb850
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 0xabb8ae
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 0xae6720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xabb8ba
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.00acc1e1
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 0xabb8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xae6720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xabb92a
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.00acd082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xabb957
mov word [eax], si
add eax, 2
push eax
call fcn.00acd030
add esp, 4
jmp 0xabb959
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 0xabb8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xabb8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xabc0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xae1458
push ecx
call fcn.00acc1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00acc1e1
add esp, 0x10
jmp 0xabc0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00acc20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00acbdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00abc050
mov eax, dword [0xae6728]
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 0xabc13b
push esi
call fcn.00abbfb0
add esp, 4
mov dword [0xae6728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xabc14c
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.00abbff0
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 0xabf440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xabf4b7
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 0xabf48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xabf471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xabf47e
add edx, ecx
cmp ebx, edx
jb 0xabf48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xabf467
xor ecx, ecx
jmp 0xabf4a2
test eax, eax
jne 0xabf492
xor ecx, ecx
jmp 0xabf4a2
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.00abf3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xabf8f0
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 0xabf921
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 0xabf946
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 0xabf96e
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 0xabf993
push ecx
push esi
call fcn.00abf4c0
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