joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a210
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, 0x190
push edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44a2e2
lea ecx, [esp + 0x20]
push ebp
mov ebp, 4
push ecx
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Browse_For_Folder_Width
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44a290
mov ebx, dword [esp + 0x1c]
xor esi, esi
test edi, edi
mov dword [esp + 0x14], ebp
je 0x44a2a9
mov eax, dword [0x65bb1c]
push 0x65b838
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Browse_For_Folder_Height
push ecx
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop ebp
jne 0x44a2d7
or esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov edx, ebx
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x451490
Capabilities:
Encode data using xor

Disassembly:
xchg ebx, eax
dec esi
adc edi, dword [ebp - 0x44e112df]
ret
mov cl, byte [ecx - 0x6f9a254d]
sal byte [eax - 0x5112909c], cl
push edi
into
pushal
pop ecx
clc
cmpsb byte [esi], byte es:[edi]
mov eax, dword [0x5851ae16]
imul byte [esi + 0x2d255d7c]
or byte [eax + 0x6d263df7], 0xd3
loopne 0x4513d3
dec edi
xchg ebx, eax
aam 0xc3
xchg esp, eax
pop edx
std
mov dword [0x8b62fa6d], eax
xchg esi, eax
in eax, dx
cwde
push es
and eax, 0x7dbedd3e
test eax, 0x234f07f7
jbe 0x451466
mov edx, dword [ebx + 0x65]
sbb ebp, dword [ebp + 0x32]
std
jno 0x451402
lcall 0x69dd, 0xa544c87d
invalid
js 0x4514a3
dec eax
cmp dl, bl
mov edi, 0x96dff32f
xor byte [edx - 0x77009c6b], 5
and byte [ecx], 0xa2
sub eax, 0xe1253d83
xchg byte [ecx], cl
or al, 0xe9
jge 0x45144b
xor esp, esp
fld st(7)
bound esi, qword [eax - 0x7f]
mov al, byte [0x175b39ab]
pop ebx
pop ss
pop ebx
pop ss
mov al, byte [0x38049fe6]
inc ebp
or esi, dword [ebx]
push ss
pop edx
aam 0x4a
insd dword es:[edi], dx
adc eax, 0x579d7ae5
push edi
jne 0x45142e
mov eax, 0x49eb4c18
dec edx
std
jnp 0x45150d
ret 0x3adb
mov esi, 0x4ae4b7af
mov eax, dword [0x3e55cc41]
push ebp
mov gs, word [ebx]
and ecx, dword [ebx - 0x5f]
invalid
Function at 0x4e6031
Capabilities:
Encode data using xor

Disassembly:
sal byte ss:[ebx], 0x17
retf 0x50e8
imul esp
in al, 0xc2
rcl esp, 1
mov dword [ebx], eax
mov esi, 0x2c0b4e6
pop eax
dec esi
push ebx
and dword [edi], ebp
adc al, 0x46
std
movsb byte es:[edi], byte [esi]
xor eax, 0xdb743bcf
sub al, 0x15
jge 0x4e6034
ret 0xd4d1
pushal
enter 0x66fd, 0xffffffffffffff83
loope 0x4e6003
nop
inc ebp
xchg ecx, eax
xor byte [edx + 0xc], bh
push ebp
ret

Function at 0x588704
Capabilities:
Encode data using xor

Disassembly:
cmp dh, bl
xchg byte [ebx + edi*2 - 0x32], cl
inc eax
cwde
add byte [ebx - 0x4c], bh
xor dl, ah
loopne 0x588761
adc dword [eax], edi
xor edx, dword [edi + edi*2 - 0x6e]
pushal
add ah, byte [eax + 0x3e]
cmc
mov dl, 0x63
shl dword [eax], 1
mov byte [ebx + 0x61], dl
pop ecx
scasd eax, dword es:[edi]
mov byte [eax + 0x35f3b332], bh
jno 0x58879f
xchg esp, eax
fisubr word [ebx]
mov al, 0x2f
xchg edx, eax
sbb eax, 0xd0b1ccba
adc esp, dword [edi]
sub byte [ecx + 0x51], ah
mov byte [esi + 0x31], ch
dec esp
dec ebp
push eax
mov cl, 0x60
pushal
mov byte [esi + edi], bl
pushal
sar byte [edx], cl
inc ebx
adc byte [edx - 0x40], al
xor byte [eax + 0x67107261], bh
dec edx
pop esi
outsb dx, byte [esi]
add byte [ecx - 0x71], al
js 0x5887af
bound edx, qword [ebx - 0x26]
xor edx, dword [ebx + 0x2fc236a8]
ret 0x112f
lds esp, [eax]
and bl, ah
invalid
fidiv dword [ebx]
xchg ebx, eax
test al, 0x36
ret 0x112f
jg 0x588746
salc
xchg dword [ebx + ecx*8], edx
pop esi
dec esp
xor eax, 0x5e5e42eb
cmc
cmp byte [eax + 0x53], 0x95
insb byte es:[edi], dx
jo 0x58876f
mov ebx, dword [0x5f964b1b]
lds ebx, [edi - 0x9d77fd7]
loope 0x5887b0
stc
adc eax, 0xd3d2fa9f
inc ebp
dec esi
adc dh, byte [eax]
mov al, byte [0xc3b184b5]
add dword [eax + eax*4 + 0xe], esi
adc byte [edi], 0xcf
inc ecx
mov bh, 0x48
xor ch, dh
add al, 0x6a
dec esp
pop ss
iretd
call 0x28508c17
arpl word [eax + edi*8], ax
daa
jl 0x588773
pushal
xor edx, 0x7b819aae
or dword [ecx + 0x6d8870a1], eax
rcl byte [eax - 0x64]
jle 0x58881e
push eax
int3
push ebx
pushal
jo 0x5887a4
rol byte [eax - 0x5acfc334], 0x1a
shl byte [ecx + 0x4440b0d5], 1
lahf
xchg ebp, eax
inc edi
sbb al, 0x6a
adc byte [eax], 0xfb
and al, 0x70
xor byte [ebx], dh
mov eax, 0x7e951a69
and al, 0x89
dec esp
sti
dec edi
sbb esi, esi
add eax, 0xee9c9962
in al, dx
xor al, bl
invalid

Function at 0x5e0420
Capabilities:
Encode data using xor

Disassembly:
push es
imul ebp, dword [ecx + ebx + 0xe], 0x81094365
test eax, 0xb217f3a2
push ebx
xor ah, byte [esp + ebp*8 - 0x52c46c7]
invalid

Function at 0x603040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub ah, byte [eax + 0x79]
xor byte [esi], 0xbd
push ebx
mov al, 9
out 0x59, al
iretd
xor ah, byte ss:[esi - 0x2e]
stc
jge 0x602ff2
add eax, dword [edi + 0x38]
add ch, bl
sub bh, byte [esi + 0x2e]
mov byte cs:[eax + 0x229448b6], cl
xabort 0xffffffffffffffb0
pop edx
salc
add al, 0x67
lcall 0x2a93, 0x5d2ed186
imul ebx, dword [ebx], 0x2c
cwde
mov esi, 0x60be47b9
inc ecx
dec esi
cmpsb byte [esi], byte es:[edi]
pop es
in al, 0xe1
lds edi, [ecx]
xchg esi, eax
invalid
Function at 0x6331c9
Capabilities:
Encode data using xor

Disassembly:
xchg byte [ebx], ah
xchg edx, eax
cmp edi, edx
out dx, eax
out dx, eax
shr bh, 1
push eax
sub bl, byte [esi]
push ss
jnp 0x633187
push ebp
or al, 0xd9
adc dword [ebx + 0x227ea04f], edx
les esi, es:[ecx]
inc ebp
mov dh, 0xef
neg esp
pushal
xchg ebp, eax
mov eax, dword [0x1ea7158b]
lodsb al, byte [esi]
xchg ebx, eax
xchg byte [edi + 0x57e066a1], dl
fstp qword [esi]
mov dh, 0x58
xor dword [ebx - 0x17], 0x5a
dec eax
mov dword [0x8623f851], eax
sbb dword [ecx - 0x2acd29cf], esi
cmpsd dword [esi], dword es:[edi]
test eax, 0x5137fb11
aad 0x36
enter 0x75a5, 0xffffffffffffffe4
inc esi
inc esi
rol dword [edi - 0x5e], cl
xor al, 0x15
add eax, 0xd641f24f
sub ecx, dword [edi + ebx*4 + 0x43c76254]
mov ah, 0xca
das
mov dh, 0x66
out 0x8e, eax
adc bh, byte [edi + 0x4b]
jae 0x633168
jnp 0x6331ff
cld
leave
loope 0x633116
cmpsd dword [esi], dword es:[edi]
out dx, eax
mov esp, 0x52c922bf
inc ebp
jae 0x6331f7
inc edi
push ebx
adc al, 0xb2
xor dword [eax + 0x46d4c770], eax
add dword [eax - 0x30], 0xdf62a556
add al, bl
xchg ebp, eax
xlatb
push 0x8340161e
pushal
xchg esp, eax
inc esp
hlt
je 0x633169
sahf
aaa
and esi, edx
ror byte [ebx + 0x609394a5], cl
ror byte [ebx + 0x609394a5], cl
add ch, 0x46
mov eax, dword [0x97b055ab]
invalid
jb 0x6331cf
and edx, dword [ebp - 0x79db5ec4]
jns 0x63325a
pop es
aad 0x86
push ebx
jo 0x633279
cmpsd dword [esi], dword es:[edi]
pop edi
test dword [eax - 0x5445b8c0], edx
ret 0x4bc8
out dx, al
xchg ebx, eax
jmp 0x37c631e3
pop ds
dec edx
push ss
or eax, 0xfd1030f4
or eax, 0xfd1030f4
adc al, 0x43
push edi
cmp dword [edi], eax
mov ebp, 0xc05326ec
xor edi, dword [edx + 0x40a7a1d6]
xchg edi, eax
mulps xmm2, xmmword [ebp - 0x75]
pop es
mov dword [edx], eax
jno 0x63327d
pop ss
mov ecx, 0x1fc1a73c
xlatb
cmp byte [ecx], dl
invalid

Function at 0x64cff0
Capabilities:
Terminate process

Disassembly:
mov ebp, 0x750100a5
add eax, 0x1039e8
add bh, bh
je 0x64d022
add al, 0xe8
imul edx, dword [eax], 0x68590000
inc dword [eax]
add byte [eax], al
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x403e60
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x5555ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x403f21
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00492640
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403f0b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00492640
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x5188d0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5188d4
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x403f21
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463a58
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00492640
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.00403ff0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004ada50
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x403f81
cmp eax, 0x207
ja 0x403f81
jne 0x403f88
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403f91
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00463a58
mov esp, ebp
pop ebp
ret
Function at 0x404a50
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00463e80
mov eax, dword [0x5555ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x404a80
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463a58
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.00492640
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004aedb5
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00463a58
mov esp, ebp
pop ebp
ret
Function at 0x404b10
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x5555ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x404d23
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404d23
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404b43
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x404d23
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00492640
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00492640
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x51898c
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404bc4
test al, 1
je 0x404bc4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x404d09
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x404cfd
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x404c78
cmp word [ebp - 0x638], 0x2e
jne 0x404c37
mov ax, word [ebp - 0x636]
test ax, ax
je 0x404ce2
cmp ax, 0x2e
jne 0x404c37
cmp word [ebp - 0x634], 0
je 0x404ce2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00492640
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00404b10
add esp, 4
jmp 0x404ce0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00492640
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404ccf
test al, 1
je 0x404ccf
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404c00
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463a58
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00463a58
mov esp, ebp
pop ebp
ret
Function at 0x405880
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4058af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.00426060
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4058a7
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4058d5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405892
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4058f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508a66
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x5555ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40592c
xor eax, eax
jmp 0x405b32
cmp word [ebx], 0
je 0x405925
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405937
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x405925
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00492640
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x518a0c
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405992
test al, 1
je 0x405992
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.00404da0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x405ae2
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x405a41
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x405a41
cmp word [ebp - 0x858], 0x2e
jne 0x405a41
mov ax, word [ebp - 0x856]
test ax, ax
je 0x405a1c
cmp ax, 0x2e
jne 0x405a41
cmp word [ebp - 0x854], 0
jne 0x405a41
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x405b4e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x405ad4
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.00405040
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x405a7c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x405a7c
mov esi, dword [ebp - 0x888]
push esi
call fcn.004058f0
jmp 0x405a88
mov esi, dword [ebp - 0x888]
push esi
call fcn.00405880
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x405a99
xor edi, edi
jmp 0x405ab8
cmp dword [ebp - 0x424], 0
jne 0x405aa6
xor edi, edi
jmp 0x405ab8
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405ad4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4059d9
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x405b08
cmp eax, 0xffffffff
je 0x405b08
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.00404a50
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x405b2d
cmp eax, 0xffffffff
je 0x405b2d
push eax
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00463a58
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x405b08
Function at 0x405c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405c59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405c59
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405c4a
cmp esi, edx
jae 0x405c59
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405c38
cmp esi, edx
jae 0x405c59
cmp word [esi], 0
je 0x405c59
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x407240
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x5555ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.00492640
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.SmartWriterInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x808], esi
test esi, esi
je 0x407327
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4072f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x518a98
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x4072e2
push 0
push 0
push 0x1400
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463a58
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x407312
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x40731f
lea edx, [ebp - 0x808]
push edx
push eax
call fcn.00406d30
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00463a58
mov esp, ebp
pop ebp
ret
Function at 0x4073c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a3c
call fcn.00463e80
mov eax, dword [0x5555ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0
push 2
mov dword [ebp - 0x1a34], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4075c6
push edi
push 0x228
lea eax, [ebp - 0x1a2c]
push 0
push eax
call fcn.00492640
add esp, 0xc
mov dword [ebp - 0x1a30], 0x22c
lea eax, [ebp - 0x1a30]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4075c2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1a3c], eax
cmp eax, dword [ebp - 0x1a28]
je 0x4075a7
push dword [ebp - 0x1a34]
lea eax, [ebp - 0x1a0c]
push eax
call fcn.004af2ae
add esp, 8
test eax, eax
jne 0x4075a7
push 0x800
push eax
lea eax, [ebp - 0x1804]
push eax
call fcn.00492640
add esp, 0xc
push dword [ebp - 0x1a28]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x407576
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00492640
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push edi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x40756b
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00492640
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.00493a82
add esp, 0x14
test eax, eax
je 0x407533
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x407533
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407520
lea eax, [ebp - 0x1004]
jmp 0x407551
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407540
lea eax, [ebp - 0x804]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x1804]
push 0x400
push eax
call fcn.004ae19e
add esp, 0x10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x40757c
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1a28]
mov dword [ebp - 0x1a38], ecx
cmp dword [esi + 8], eax
je 0x407598
mov dword [eax], ecx
add dword [esi + 4], 4
jmp 0x4075a7
lea ecx, [ebp - 0x1a38]
push ecx
push eax
mov ecx, esi
call fcn.00406bd0
lea eax, [ebp - 0x1a30]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov eax, dword [ebp - 0x1a3c]
jne 0x407441
push ebx
call edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00463a58
mov esp, ebp
pop ebp
ret 8