joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d06
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401d34
xor al, al
jmp 0x401db2
call fcn.00401279
push eax
lea ecx, [ebp + 8]
call fcn.00402a67
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00402cac
push eax
push ebx
push 0x4188d4
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0040293d
test edi, edi
je 0x401da5
cmp edi, 0x6f
je 0x401da5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401da5
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.004027d4
mov bl, 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040125d
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401dba
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401dd1
xor al, al
jmp 0x401e42
push ebx
push esi
call fcn.00401279
push eax
lea ecx, [ebp - 4]
call fcn.00402a67
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00402cac
push eax
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040293d
test esi, esi
js 0x401e33
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401d06
test al, al
je 0x401e33
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x20]
call fcn.004027d4
mov bl, 1
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040125d
pop esi
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401e47
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.00401279
push eax
lea ecx, [ebp - 4]
call fcn.00402a67
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov ebx, 0x104
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
call fcn.00402cac
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0040293d
test edi, edi
je 0x401eb3
cmp edi, ebx
jae 0x401eb3
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.00401d06
test al, al
je 0x401eb3
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x20]
call fcn.004027d4
mov bl, 1
jmp 0x401eb5
xor bl, bl
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040125d
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ec9
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41ace0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x210], ax
mov edi, ecx
lea eax, [ebp - 0x20e]
or esi, 0xffffffff
push ebx
push eax
call fcn.00409490
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x4188dc
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401fd2
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040275f
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.00402857
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.0040125d
push 0x4187e4
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401fd2
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401fd2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401fd2
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401fd2
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.0040229d
pop ecx
test eax, eax
jne 0x401fc8
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401fd2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408990
mov esp, ebp
pop ebp
ret

Function at 0x401fe5
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401279
push eax
lea ecx, [ebp - 8]
call fcn.00402a67
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 8]
mov ebx, 0x104
mov dword [ebp - 0x14], eax
push ebx
mov ecx, eax
call fcn.00402cac
push ebx
push eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040293d
test esi, esi
je 0x402099
cmp esi, 0x104
jae 0x402099
push dword [edi + 0x1c]
lea ecx, [ebp - 4]
call fcn.0040275f
push 0x104
lea ecx, [ebp - 4]
call fcn.00402cac
push 0x418804
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [ebp - 4]
push dword [esi - 8]
push esi
call fcn.0040a4cd
pop ecx
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00402ce4
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x402091
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x10]
call fcn.00402857
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.0040125d
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.0040125d
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40229d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x41ace0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x9c], eax
push edi
mov edi, ecx
cmp esi, 0xd
jae 0x4022cd
or eax, 0xffffffff
jmp 0x40245a
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x402281
push eax
xor ebx, ebx
mov dword [ebp - 0x90], 0x40228f
push ecx
mov edx, edi
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
call fcn.004050d6
xor eax, eax
mov dword [ebp - 0x58], ebx
inc eax
mov dword [ebp - 0x34], ebx
add edi, 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
sub esi, 0xd
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [edi]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], esi
call fcn.00410e59
add esp, 0xc
mov dword [ebp - 0x84], ebx
mov edi, eax
lea eax, [ebp - 0x84]
mov edx, edi
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x7c]
add eax, 8
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00404f78
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x94]
push dword [ebp - 0x6c]
push eax
call dword [ebp - 0x90]
push dword [ebp - 0x68]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x6c], ebx
push eax
call dword [ebp - 0x90]
add esp, 0x10
mov dword [ebp - 0x68], ebx
test esi, esi
je 0x40239c
or ebx, 0xffffffff
jmp 0x402451
mov edx, dword [edi]
lea ecx, [edi + 4]
mov eax, dword [ecx]
push 4
pop esi
add ecx, esi
mov dword [ebp - 0x98], eax
push edx
mov dword [ebp - 0x80], edx
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x88], eax
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x8c], eax
mov ebx, dword [ecx]
add ecx, esi
mov dword [ebp - 0x84], ecx
call fcn.00410e59
mov edx, dword [ebp - 0x88]
mov esi, eax
pop ecx
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x8c]
push esi
push ebx
mov ebx, dword [ebp - 0x98]
lea eax, [ecx + edx]
add eax, ebx
add eax, dword [ebp - 0x84]
push eax
push ecx
mov ecx, dword [ebp - 0x84]
lea eax, [edx + ebx]
add eax, ecx
push eax
push edx
lea eax, [ebx + ecx]
mov edx, ebx
push eax
call fcn.0040514a
add esp, 0x20
xor ebx, ebx
test eax, eax
je 0x402420
inc ebx
jmp 0x40244a
push ebx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x80]
push esi
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402447
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0xa0], eax
je 0x40244a
or ebx, 0xffffffff
push esi
call fcn.00410f0e
pop ecx
push edi
call fcn.00410f0e
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408990
mov esp, ebp
pop ebp
ret
Function at 0x40246b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41ace0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00409490
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4024d1
cmp dword [ebp - 0x11c], 5
jb 0x4024d1
jbe 0x4024be
mov bl, 1
jmp 0x4024d1
cmp dword [ebp - 0x118], 1
jae 0x4024ba
cmp word [ebp - 0xc], 4
sbb al, al
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, 0x80040703
test bl, bl
pop esi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408990
mov esp, ebp
pop ebp
ret

Function at 0x403403
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00402e6c
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00409490
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x403464
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402fcf
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40348f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4034c5
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4034b2
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x4034b5
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
lea ecx, [esi - 0x10]
call fcn.0040125d
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4034fb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00403598
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40358e
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x403587
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x40357e
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40357e
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x403590
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00403598
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40372d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
cmp esi, 0x40
jae 0x40373d
xor eax, eax
jmp 0x403792
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403739
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x403739
cmp dword [edx + ecx], 0x4550
jne 0x403739
movzx eax, word [edx + ecx + 4]
push edi
mov edi, 0x14c
cmp ax, di
je 0x40377a
mov edi, 0x8664
cmp ax, di
je 0x40378f
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x40378f
add ecx, 0xc
cmp esi, ecx
jae 0x403791
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x403797
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40228
call fcn.0040c7d0
mov eax, dword [0x41ace0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40218]
push edi
xor ebx, ebx
mov dword [ebp - 0x40210], 1
push ebx
push eax
mov edi, ecx
lea eax, [ebp - 0x4020c]
push 0x200
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4039a5
cmp dword [ebp - 0x40218], 0x200
jne 0x4039a5
push 4
lea eax, [ebp - 0x4010b]
push 0x418924
push eax
call fcn.0040b00c
add esp, 0xc
test eax, eax
jne 0x403818
inc eax
mov byte [esi], al
jmp 0x4039a7
push 5
lea eax, [ebp - 0x4010b]
push str.ustar
push eax
call fcn.0040b00c
add esp, 0xc
test eax, eax
jne 0x4039a5
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.00402e6c
add eax, 0x10
lea ecx, [ebp - 0x40214]
push 0x418978
mov dword [ebp - 0x40214], eax
call fcn.004039ba
lea eax, [ebp - 0x4020c]
push eax
lea ecx, [ebp - 0x40214]
call fcn.004039ba
mov esi, dword [ebp - 0x40214]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40224], eax
cmp eax, 0xffffffff
je 0x403999
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.004112a8
add esp, 0xc
mov dword [ebp - 0x4021c], eax
push 1
push ebx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x4021c]
mov ecx, edx
neg ecx
add eax, edx
and ecx, 0x1ff
add ecx, eax
mov dword [ebp - 0x40228], ecx
test edx, edx
je 0x403946
mov eax, 0x40000
lea ecx, [ebp - 0x40218]
push ebx
cmp edx, eax
push ecx
cmovb eax, edx
push eax
mov dword [ebp - 0x40220], eax
lea eax, [ebp - 0x4000c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403940
push ebx
lea eax, [ebp - 0x40218]
push eax
push dword [ebp - 0x40220]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403940
mov edx, dword [ebp - 0x4021c]
sub edx, dword [ebp - 0x40220]
mov dword [ebp - 0x4021c], edx
jne 0x4038d9
jmp 0x403946
mov byte [ebp - 0x40210], bl
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x40210], bl
je 0x40397d
cmp byte [edi + 8], bl
je 0x40396e
lea eax, [ebp - 0x40214]
push eax
lea ecx, [edi + 0xc]
call fcn.00402857
mov eax, dword [edi + 0x18]
test eax, eax
je 0x40397d
push esi
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
mov eax, dword [ebp - 0x40228]
cmp eax, 0xffffffff
je 0x403993
push ebx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov bl, byte [ebp - 0x40210]
lea ecx, [esi - 0x10]
call fcn.0040125d
mov al, bl
jmp 0x4039a7
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408990
mov esp, ebp
pop ebp
ret 4
Function at 0x4087aa
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41ace0]
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.004067a8
mov dword [ebp - 0x14], eax
cmp dword [0x41bc80], esi
jne 0x40889d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40882a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40897d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40897d
push 0x4153dc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40897d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41bc80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41bc84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41bc88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41bc90], eax
test eax, eax
je 0x40889a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41bc8c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4088c2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4088b5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4088d7
push 4
pop eax
jmp 0x40897f
cmp dword [ebp - 0x14], esi
je 0x4088d7
push dword [0x41bc80]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4088bc
mov eax, dword [0x41bc8c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x408935
cmp dword [0x41bc90], edi
je 0x408935
push eax
call ebx
push dword [0x41bc90]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x408935
test eax, eax
je 0x408935
call ecx
test eax, eax
je 0x40892a
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 0x40892a
test byte [ebp - 8], 1
jne 0x408935
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x408965
mov eax, dword [0x41bc84]
cmp eax, edi
je 0x408962
push eax
call ebx
test eax, eax
je 0x408962
call eax
mov esi, eax
test esi, esi
je 0x408962
mov eax, dword [0x41bc88]
cmp eax, edi
je 0x408962
push eax
call ebx
test eax, eax
je 0x408962
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41bc80]
call ebx
test eax, eax
je 0x40897d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40897f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408990
mov esp, ebp
pop ebp
ret
Function at 0xa76370
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 0xa7638e
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 0xa9f074
push ecx
mov edi, eax
call fcn.00a8a198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa763cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a8a02e
push esi
call fcn.00a89fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa79850
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 0xa798ae
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 0xaa4720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa798ba
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.00a8a1e1
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 0xa798ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xaa4720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa7992a
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.00a8b082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa79957
mov word [eax], si
add eax, 2
push eax
call fcn.00a8b030
add esp, 4
jmp 0xa79959
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 0xa798ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa798b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa7a0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa9f458
push ecx
call fcn.00a8a1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a8a1e1
add esp, 0x10
jmp 0xa7a0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a8a20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a89dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a7a050
mov eax, dword [0xaa4728]
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 0xa7a13b
push esi
call fcn.00a79fb0
add esp, 4
mov dword [0xaa4728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa7a14c
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.00a79ff0
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 0xa7d440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa7d4b7
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 0xa7d48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa7d471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa7d47e
add edx, ecx
cmp ebx, edx
jb 0xa7d48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa7d467
xor ecx, ecx
jmp 0xa7d4a2
test eax, eax
jne 0xa7d492
xor ecx, ecx
jmp 0xa7d4a2
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.00a7d3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret