joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441eb7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x441f02
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00442478
test al, al
jne 0x441efc
sub edx, 2
cmp edx, edi
jne 0x441ee2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x441f24
lea eax, [edi + 2]
cmp edx, eax
je 0x441f24
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00441ab0
add esp, 0x10
jmp 0x44201e
push esi
lea ecx, [ebp - 0x255]
call fcn.00442478
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x441f67
push dword [ebp - 0x25c]
jmp 0x441f14
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x441fa4
cmp word [ebp - 0x226], 0
je 0x441fc5
cmp word [ebp - 0x226], ax
jne 0x441fa4
cmp word [ebp - 0x224], 0
je 0x441fc5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00441ab0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x442011
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x441f7e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x441ff9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44201e
push 0x441396
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403896
add esp, 0x10
jmp 0x441fee
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402351
leave
ret
Function at 0x459edb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4782b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x459f1b
cmp byte [ebx], 0xa
jne 0x459f1b
or byte [eax + edi + 0x28], 4
jmp 0x459f20
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x45a01e
mov al, byte [edx]
cmp al, 0x1a
je 0x45a000
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x459f4f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x459f74
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x459f7e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x459f31
jmp 0x45a01e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459ffb
cmp dword [ebp - 0xc], 0
je 0x459ffb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4782b8]
test byte [eax + edi + 0x28], 0x48
je 0x459fd5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x459fc0
mov byte [esi], dl
jmp 0x459fd1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4782b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45a01e
cmp byte [ebp - 1], 0xa
jne 0x459fe4
cmp esi, ebx
jne 0x459fe4
mov byte [esi], 0xa
jmp 0x45a01d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040156e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45a01e
mov byte [esi], 0xd
jmp 0x45a01d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4782b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45a01a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45a01e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45a07a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4782b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45a0bd
cmp word [esi], dx
jne 0x45a0bd
or byte [edi + eax + 0x28], 4
jmp 0x45a0c2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x45a215
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x45a1f5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x45a104
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45a13a
cmp eax, edx
jae 0x45a146
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x45a0dc
jmp 0x45a215
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45a1f1
cmp dword [ebp - 0x14], 0
je 0x45a1f1
mov eax, dword [ebx*4 + 0x4782b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x45a1c9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x45a192
mov word [esi], cx
jmp 0x45a1c5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4782b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4782b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4782b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x45a215
pop ebx
cmp word [ebp - 4], bx
jne 0x45a1da
cmp esi, dword [ebp + 0xc]
jne 0x45a1da
mov word [esi], bx
jmp 0x45a212
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040156e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x45a215
push 0xd
jmp 0x45a20e
mov ecx, dword [ebx*4 + 0x4782b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45a20c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45a215
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x438c91
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x438a14
sub esi, eax
mov esi, 0xb915d66f
add esi, 0x4669ac5e
call fcn.00438ce4
add eax, eax
add esi, 0x7180233d
sub esi, 0xc58cae8c
xor dword [ecx], ebx
add eax, 1
mov esi, eax
sub esi, 0x57a6ebf2
add ecx, 1
add eax, 0x2f14cdd8
dec esi
mov eax, 0x7c868b66
cmp ecx, edi
jne fcn.00438c91
mov esi, esi
mov eax, esi
inc eax
ret
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x408935
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
or edx, edx
call fcn.0040895a
mov ecx, 0x89c9481a
or edx, ecx
xor dword [esi], edi
dec edx
inc esi
and edx, edx
dec ecx
cmp esi, eax
jne fcn.00408935
ret
Function at 0x406690
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4158eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40496c
call fcn.004072f1
push 4
mov dword [esp + 0x18], 0
call fcn.00408027
mov edi, eax
add esp, 4
test edi, edi
je 0x406704
push ebx
call fcn.004071c9
mov dword [edi], eax
call fcn.00406f88
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004072b2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4066f8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004072da
pop ebx
jmp 0x406706
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408aa1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419510]
jne 0x408aab
repz ret
jmp fcn.0040ccac
Function at 0x410dc3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ae66
and dword [ebp - 0x14], 0
cmp dword [0x430290], 0
mov dword [ebp - 0x18], eax
jne 0x410e76
push 0x4038cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410f1e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4038c0
push ebx
call edi
test eax, eax
je 0x410f1e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4038b0
push ebx
mov dword [0x430290], eax
call edi
push eax
call esi
push 0x40389c
push ebx
mov dword [0x430294], eax
call edi
push eax
call esi
push 0x403880
push ebx
mov dword [0x430298], eax
call edi
push eax
call esi
mov dword [0x4302a0], eax
test eax, eax
je 0x410e76
push 0x403868
push ebx
call edi
push eax
call esi
mov dword [0x43029c], eax
mov eax, dword [0x43029c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410ecf
cmp dword [0x4302a0], ecx
je 0x410ecf
push eax
call esi
push dword [0x4302a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410ecf
test ebx, ebx
je 0x410ecf
call edi
test eax, eax
je 0x410ec6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410ec6
test byte [ebp - 8], 1
jne 0x410ecf
or dword [ebp + 0x10], 0x200000
jmp 0x410f02
mov eax, dword [0x430294]
cmp eax, dword [ebp - 0x18]
je 0x410f02
push eax
call esi
test eax, eax
je 0x410f02
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410f02
mov eax, dword [0x430298]
cmp eax, dword [ebp - 0x18]
je 0x410f02
push eax
call esi
test eax, eax
je 0x410f02
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430290]
call esi
test eax, eax
je 0x410f1e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410f20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408aa1
leave
ret
Function at 0x413540
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.00411930
cmp dword [0x7b402c], 0x37
jne 0x4135da
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x810]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x7b5020]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x43507c]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x413860
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b402c]
sub esp, 0x974
push ebx
push ebp
push esi
mov esi, dword [0x43507c]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x413a5f
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x413896
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x7b402c], 0x1c
jne 0x4138ad
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x42bf00]
mov ebx, dword [0x42bf08]
mov ebp, dword [0x42bf0c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42bf04]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x4138f6
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7b3f9c], edi
mov eax, dword [esp + 0x1c]
add dword [0x7b3f9c], eax
mov eax, dword [0x7b3f9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0x7b402c], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x41398d
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0x7b402c], 0x979
mov dword [0x7b3fa0], 0xff6b3619
mov dword [0x7b3fa4], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x4139d7
push 0
lea ecx, [esp + 0x184]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
mov eax, dword [0x7b402c]
cmp eax, 0x93
je 0x4139fd
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x4138f0
cmp eax, 0x8d4
jne 0x413a14
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0x7b402c], 0x17
jne 0x413a4e
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x40]
push edx
push 0x404070
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x413890
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x974
ret
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x7c54f0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004058b0
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x7c54f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7c54f0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x402d92
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x7a61b8]
sub esi, dword [0x7a61c4]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x7c5460], eax
jle 0x402ef0
push dword [0x7a61c0]
call fcn.00402d7b
push ebx
push ebx
push dword [0x7a61c4]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x79a1b4], esi
mov dword [0x4138ec], ebx
mov ebp, 0x79a1b8
mov eax, dword [0x7a61bc]
sub eax, dword [0x7a61c0]
mov edi, 0x4000
cmp eax, edi
jg 0x402e07
mov edi, eax
push edi
mov esi, 0x7a21b8
push esi
call fcn.00402d49
test eax, eax
je 0x402f02
add dword [0x7a61c0], edi
mov dword [0x41b8f0], esi
mov dword [0x41b8f4], edi
cmp dword [0x7c540c], ebx
je 0x402e5e
cmp dword [0x7c54e0], ebx
jne 0x402e5e
mov eax, dword [0x79a1b4]
sub eax, dword [0x7a61b8]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x7a61c4]
mov dword [0x4138ec], eax
call fcn.00402caa
pop ecx
push 0x41b8f0
mov dword [0x41b8f8], ebp
mov dword [0x41b8fc], 0x8000
call fcn.004061b9
test eax, eax
jl 0x402f07
mov esi, dword [0x41b8f8]
sub esi, ebp
je 0x402ebc
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f0c
cmp esi, dword [esp + 0x10]
jne 0x402f0c
add dword [0x7a61c4], esi
cmp dword [0x41b8f4], ebx
jne 0x402e2d
jmp 0x402ec8
cmp dword [0x41b8f4], ebx
jne 0x402f07
cmp edi, ebx
je 0x402f07
mov eax, dword [0x7a61b8]
mov ecx, eax
sub ecx, dword [0x7a61c4]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402df1
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402caa
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402efa
push 0xfffffffffffffffd
pop eax
jmp 0x402efa
push 0xfffffffffffffffe
jmp 0x402f09
Function at 0x402f10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f3c
mov ecx, dword [0x7c5458]
push edi
add eax, ecx
push edi
push eax
push dword [0x409014]
mov dword [0x7a61b8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402d92
cmp eax, edi
jl 0x403035
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403031
cmp dword [ebp - 4], esi
jne 0x403031
push dword [ebp + 8]
add dword [0x7a61b8], esi
call fcn.00402d92
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403034
cmp dword [ebp + 0x10], edi
jne 0x403000
cmp dword [ebp + 8], edi
jle 0x40302c
mov esi, 0x7a21b8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fb0
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403031
cmp edi, dword [ebp - 4]
jne 0x403031
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ffc
cmp dword [ebp + 0x14], edi
jne 0x402ffc
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x7a61b8], eax
cmp dword [ebp + 8], 0
jg 0x402fa3
jmp 0x40302c
push 0xfffffffffffffffe
jmp 0x403033
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40300b
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403031
mov eax, dword [ebp - 4]
add dword [0x7a61b8], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403034
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x40549b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x7b8208
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x7b8208], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054d6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40561d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40563a
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40563d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40566c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056b0
test edi, edi
jne 0x405677
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056aa

Function at 0x4056b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405725
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405714
cmp dword [ebp + 0x14], 1
je 0x405716
cmp dword [ebp + 0x14], 2
je 0x405716
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14