joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016e1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
mov eax, 0x202c
call fcn.00406420
cmp byte [0x412010], 0
je 0x401907
sub esp, 0xc
push 0
lea eax, [esp + 0x2030]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x407160
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
add esp, 0xc
test eax, eax
jne 0x401907
mov esi, 0
mov edi, 1
lea ebx, [esp + 0x1014]
lea ebp, [esp + 0x2028]
jmp 0x4018dc
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_lstrlenA
add esp, 0xc
cmp eax, 0x10
jle 0x4018d7
mov edx, 0x407114
mov eax, ebx
call fcn.00401013
test eax, eax
jne 0x4018d7
sub esp, 8
push 0x407120
push ebx
call sub.KERNEL32.dll_lstrcatA
sub esp, 4
push ebp
push 0x20019
push 0
push eax
push 0x80000003
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x4018d7
mov dword [esp + 0x2018], 0x1000
sub esp, 8
lea eax, [esp + 0x2020]
push eax
push ebx
lea eax, [esp + 0x202c]
push eax
push 0
push 0x4071a8
push dword [esp + 0x2044]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
jne 0x4018c5
mov al, byte [esp + 0x1014]
test al, al
je 0x4018c5
cmp al, 0x30
je 0x4018c5
sub esp, 0xc
lea eax, [esp + 0x2030]
push eax
push 0x20019
push 0
push 0x4071b4
push dword [esp + 0x2044]
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x4018c5
mov dword [esp + 8], 0
jmp 0x40185d
sub esp, 8
push dword [esp + 0x201c]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x202c]
push 0
push ebx
push dword [esp + 0x203c]
call sub.ADVAPI32.DLL_RegSetValueExA
inc dword [esp + 0x10]
add esp, 8
mov dword [esp + 0x2018], 0x1000
mov dword [esp + 0x2014], 0x1000
lea eax, [esp + 0x2014]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2024]
push eax
push 0
lea eax, [esp + 0x2028]
push eax
push ebx
push dword [esp + 0x20]
push dword [esp + 0x2040]
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
je 0x401831
cmp dword [esp + 8], 0
je 0x4018b3
mov edi, 0
sub esp, 0xc
push dword [esp + 0x2030]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
sub esp, 0xc
push dword [esp + 0x2034]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
test edi, edi
je 0x4018f5
inc esi
push 0x1000
push ebx
push esi
push 0x80000003
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x40174d
sub esp, 0xc
push dword [esp + 0x202c]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
add esp, 0x202c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4024ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, eax
lea ecx, [eax + 1]
mov ebx, 0
jmp 0x4024e4
inc ecx
mov dl, byte [ecx - 1]
cmp dl, 0x2f
jne 0x4024f1
lea ebx, [ecx - 1]
jmp 0x4024e3
test dl, dl
jne 0x4024e3
test ebx, ebx
je 0x4024fc
lea esi, [ebx + 1]
call fcn.0040140f
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x10], 0
je 0x4024fc
cmp byte [ebp - 0xf], 0
je 0x4024fc
cmp byte [ebp - 0xe], 0
je 0x4024fc
cmp byte [ebp - 0xd], 0
je 0x4024fc
sub esp, 0xc
push esi
call sub.KERNEL32.dll_lstrlenA
lea ebx, [eax + 4]
add eax, 0x25
add esp, 0xc
and eax, 0xfffffff0
call fcn.00406420
lea eax, [esp + 0xf]
and eax, 0xfffffff0
mov dword [ebp - 0x64], eax
mov dword [eax], 0
sub esp, 8
push esi
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
call sub.KERNEL32.dll_lstrcpyA
lea eax, [ebx + ebx + 0x72]
add esp, 8
and eax, 0xfffffff0
call fcn.00406420
lea eax, [esp + 0xf]
and eax, 0xfffffff0
mov dword [ebp - 0x60], eax
mov edi, dword [ebp - 0x64]
add edi, ebx
cmp dword [ebp - 0x64], edi
jae 0x402605
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x64]
xor dword [eax], edx
add eax, 4
cmp eax, edi
jb 0x402583
lea ebx, [ebp - 0x50]
mov edx, ebx
mov eax, dword [0x412178]
call fcn.00401202
sub esp, 4
push ebx
push 0x4072b7
push dword [ebp - 0x60]
call sub.USER32.dll_wsprintfA
mov edx, dword [ebp - 0x60]
lea esi, [eax + edx]
mov ebx, dword [ebp - 0x64]
add esp, 0x10
sub esp, 4
movzx eax, byte [ebx]
push eax
push str._02X
push esi
call sub.USER32.dll_wsprintfA
add esi, eax
inc ebx
add esp, 0x10
cmp ebx, edi
jne 0x4025b8
mov byte [esi], 0
mov ecx, 1
mov edx, 0
mov eax, dword [ebp - 0x60]
call fcn.00402030
mov edx, eax
test eax, eax
je 0x402630
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
jmp 0x402630
lea ebx, [ebp - 0x50]
mov edx, ebx
mov eax, dword [0x412178]
call fcn.00401202
sub esp, 4
push ebx
push 0x4072b7
push dword [ebp - 0x60]
call sub.USER32.dll_wsprintfA
mov edx, dword [ebp - 0x60]
lea esi, [eax + edx]
add esp, 0x10
jmp 0x4025d4
mov eax, edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4180b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, ecx
push edi
mov ecx, 6
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dl, byte [eax]
pop edi
pop esi
xor ecx, ecx
push ebx
mov bl, byte [ecx + eax + 4]
add ecx, 8
xor bl, dl
cmp ecx, 0x10
mov byte [ecx + eax - 4], bl
jl 0x4180c6
mov dl, byte [eax + 1]
mov ecx, 2
mov bl, byte [ecx + eax + 4]
add ecx, 8
xor bl, dl
cmp ecx, 0x10
mov byte [ecx + eax - 4], bl
jl 0x4180e0
mov dl, byte [eax + 2]
mov ecx, 4
mov bl, byte [ecx + eax + 4]
add ecx, 8
xor bl, dl
cmp ecx, 0x10
mov byte [ecx + eax - 4], bl
jl 0x4180fa
mov dl, byte [eax + 3]
mov ecx, 6
mov bl, byte [ecx + eax + 4]
add ecx, 8
xor bl, dl
cmp ecx, 0x10
mov byte [ecx + eax - 4], bl
jl 0x418114
mov dl, byte [eax + 0x17]
mov ecx, 1
mov bl, byte [ecx + eax + 4]
add ecx, 8
xor bl, dl
cmp ecx, 0x10
mov byte [ecx + eax - 4], bl
jl 0x41812e
mov dl, byte [eax + 0x16]
mov ecx, 3
mov bl, byte [ecx + eax + 4]
add ecx, 8
xor bl, dl
cmp ecx, 0x10
mov byte [ecx + eax - 4], bl
jl 0x418148
mov dl, byte [eax + 0x15]
mov ecx, 5
mov bl, byte [ecx + eax + 4]
add ecx, 8
xor bl, dl
cmp ecx, 0x10
mov byte [ecx + eax - 4], bl
jl 0x418162
mov dl, byte [eax + 0x14]
mov ecx, 7
mov bl, byte [ecx + eax + 4]
add ecx, 8
xor bl, dl
cmp ecx, 0x10
mov byte [ecx + eax - 4], bl
jl 0x41817c
pop ebx
ret

Function at 0x418670
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, edx
push ebp
push esi
push edi
mov ebp, ecx
lea esi, [ebx + 4]
mov ecx, 6
xor eax, eax
mov edi, ebx
mov edx, esi
rep stosd dword es:[edi], eax
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41868c
push 0x14
mov edx, 9
mov ecx, ebx
call fcn.004f6404
mov edx, 0x13
mov ecx, ebx
push 0x14
call fcn.004f6364
mov cl, byte [ebx]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dl, byte [eax + esi]
add eax, 8
xor dl, cl
cmp eax, 0x10
mov byte [eax + esi - 8], dl
jl 0x4186b9
mov cl, byte [ebx + 1]
mov eax, 2
mov dl, byte [eax + esi]
add eax, 8
xor dl, cl
cmp eax, 0x10
mov byte [eax + esi - 8], dl
jl 0x4186d2
mov cl, byte [ebx + 2]
mov eax, 4
mov dl, byte [eax + esi]
add eax, 8
xor dl, cl
cmp eax, 0x10
mov byte [eax + esi - 8], dl
jl 0x4186eb
mov cl, byte [ebx + 3]
mov eax, 6
mov dl, byte [eax + esi]
add eax, 8
xor dl, cl
cmp eax, 0x10
mov byte [eax + esi - 8], dl
jl 0x418704
mov cl, byte [ebx + 0x17]
mov eax, 1
mov dl, byte [eax + esi]
add eax, 8
xor dl, cl
cmp eax, 0x10
mov byte [eax + esi - 8], dl
jl 0x41871d
mov cl, byte [ebx + 0x16]
mov eax, 3
mov dl, byte [eax + esi]
add eax, 8
xor dl, cl
cmp eax, 0x10
mov byte [eax + esi - 8], dl
jl 0x418736
mov cl, byte [ebx + 0x15]
mov eax, 5
mov dl, byte [eax + esi]
add eax, 8
xor dl, cl
cmp eax, 0x10
mov byte [eax + esi - 8], dl
jl 0x41874f
mov bl, byte [ebx + 0x14]
mov eax, 7
mov cl, byte [eax + esi]
add eax, 8
xor cl, bl
cmp eax, 0x10
mov byte [eax + esi - 8], cl
jl 0x418768
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4ddd28
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push edi
push ecx
mov eax, 0x18c
call fcn.006021b0
mov ecx, dword [esp + 0x18c]
mov edi, ecx
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [edi + 0x1b], eax
movzx eax, word [0x64715c]
push eax
call sub.WSOCK32.dll_htons
push 0
call sub.WSOCK32.dll_htonl
mov dword [0x64715c], 0
add esp, 0x190
pop edi
ret 4

Function at 0x4dde01
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 8
mov esi, ecx
mov eax, dword [esi + 0x23]
test eax, eax
jne 0x4dddb0
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], 0
mov ecx, 0x801
call fcn.004dbd80
mov ebp, eax
push dword [0x64715c]
push 0x74e014
push str._s__d
push ebp
call fcn.00602336
add esp, 0x10
push 1
call fcn.005caf52
push ebp
call fcn.005caf28
push 2
call fcn.005caf52
push ebp
call fcn.005caf28
mov dword [esp], 0
lea ebx, [esp]
push ebx
push 1
push section..data1
call fcn.005caf3d
lea ebx, [esp + 4]
push ebx
push 0x20019
push 0
push str.SOFTWAREODBCODBC.INIODBC_File_DSN
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ddee0
mov dword [esp], 0x801
mov ecx, 0x801
call fcn.004dbd80
mov ebx, eax
xor edx, edx
lea eax, [esp]
push eax
push ebx
push edx
push edx
push str.DefaultDSNDir
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ddecf
mov edi, ebx
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4dde74
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4dde6c
mov edx, eax
mov dword [esp], edx
lea eax, [ebx + edx]
cmp byte [edx + ebx - 1], 0x5c
je 0x4dde92
lea eax, [edx + 1]
mov dword [esp], eax
mov byte [ebx + edx], 0x5c
mov eax, dword [esp]
add eax, ebx
mov byte [eax], 0
mov edi, ebx
mov edx, ebp
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4ddea3
mov edx, str..dsn
mov edi, ebx
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4ddebe
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call fcn.004dbc10
mov ecx, ebp
call fcn.004dbc10
mov dword [esi + 0x23], 0
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x4e2598
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x448
call fcn.006021b0
mov ecx, dword [esp + 0x448]
mov dword [esp + 8], 0x62cde0
xor edx, edx
mov dword [esp + 0xc], edx
xor ebp, ebp
push edx
push edx
push edx
push edx
push str.Tally
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x4e273b
xor edx, edx
push edx
push edx
push 3
push edx
push edx
push edx
push str.experts.tallysolutions.com
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
je 0x4e2734
mov dword [esp + 0x10], 0
call fcn.00602146
lea edx, [esp + 0x14]
push eax
push 0x62cac4
push edx
call fcn.00602336
add esp, 0xc
lea edi, [esp + 0x14]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4e262c
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4e2624
mov dword [esp + 4], eax
lea edx, [esp + 0x48]
push str.TallyShop.php
push edx
call fcn.00602336
add esp, 8
lea edx, [esp + 0x48]
xor ecx, ecx
lea edi, [esp + 8]
push ecx
push 0x84200000
push edi
push ecx
push ecx
push edx
push 0x62ce18
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x4e272d
xor edx, edx
push edx
push edx
push edx
push edx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4e2726
lea edx, [esp + 0x48]
lea ecx, [esp + 0x448]
push ecx
push 0x3ff
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4e2726
lea ebp, [esp + 0x48]
mov edx, dword [esp + 0x448]
mov byte [esp + edx + 0x48], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov eax, dword [esp + 4]
push eax
call fcn.004e310c
mov edx, dword [esp + 0x448]
cmp edx, 0x80
jbe 0x4e2704
xor eax, eax
shr edx, 7
je 0x4e270f
mov dword [esp], ebx
mov ebx, eax
mov ecx, ebp
mov edx, dword [esp + 0x10]
call fcn.00546862
add ebp, 0x80
mov edx, dword [esp + 0x448]
shr edx, 7
inc ebx
cmp ebx, edx
jb 0x4e26df
mov ebx, dword [esp]
jmp 0x4e270f
mov ecx, ebp
mov edx, dword [esp + 0x10]
call fcn.00546862
mov ecx, dword [esp + 0x10]
call fcn.004dbc10
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x48], 0
mov ebp, 1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebp
add esp, 0x44c
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x4f0f48
Capabilities:
Create directory

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xc
mov ebx, edx
mov esi, ecx
mov edi, esi
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4f0f67
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4f0f5f
mov ebp, eax
lea ecx, [ebp + 0xa]
call fcn.004dbf60
mov edi, eax
cmp byte [esi + ebp - 1], 0x5c
je 0x4f111c
push ebx
push 0x5c
push esi
push str._s_c_04.4d
push edi
call fcn.00602336
add esp, 0x14
mov dl, byte [edi]
test dl, dl
je 0x4f0fee
cmp dl, 0x5c
je 0x4f10d3
mov ebx, edi
xor esi, esi
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4f0fb5
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4f0fad
lea eax, [edi + eax + 1]
mov ebp, edi
cmp edi, eax
je 0x4f0ff3
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp], edi
mov esi, eax
mov bl, byte [ebp]
cmp bl, 0x5c
je 0x4f0fd8
test bl, bl
jne 0x4f0fe0
mov edx, dword [esp + 8]
cmp ebp, edx
ja 0x4f1004
inc ebp
cmp ebp, esi
jne 0x4f0fcc
mov esi, dword [esp + 4]
mov edi, dword [esp]
jmp 0x4f0ff3
mov esi, 3
mov ecx, edi
call fcn.004dbc10
mov eax, esi
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret
mov dl, byte [ebp - 1]
cmp dl, 0x3a
je 0x4f0fe0
cmp dl, 0x5c
je 0x4f0fe0
xor eax, eax
mov byte [ebp], al
xor edx, edx
mov dword [esp + 4], edx
push eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
je 0x4f1059
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], eax
mov byte [ebp], bl
mov edx, eax
cmp edx, 0x35
je 0x4f10a9
cmp edx, 0x7b
je 0x4f1089
cmp edx, 5
je 0x4f105e
test edx, edx
je 0x4f0fe0
cmp edx, 0xb7
jne 0x4f10c9
jmp 0x4f0fe0
mov byte [ebp], bl
jmp 0x4f0fe0
mov edx, dword [esp]
push edx
push str.Could_not_create_directory__s_nAccess_denied_
push 3
push 4
call fcn.004f1c3c
add esp, 0x10
mov edx, dword [esp + 4]
test edx, edx
je 0x4f0fe0
mov esi, edx
mov edi, dword [esp]
jmp 0x4f0ff3
mov edx, dword [esp]
push edx
push str.Could_not_create_directory__s_nInvalid_directory_name_
push 3
push 4
call fcn.004f1c3c
add esp, 0x10
mov edx, dword [esp + 4]
cmp edx, 5
je 0x4f105e
jmp 0x4f104b
mov edx, dword [esp]
push edx
push str.Could_not_create_directory__s_nNetwork_path_not_found_
push 7
push 4
call fcn.004f1c3c
add esp, 0x10
mov edx, dword [esp + 4]
cmp edx, 0x7b
je 0x4f1089
jmp 0x4f104b
mov esi, edx
mov edi, dword [esp]
jmp 0x4f0ff3
cmp byte [edi + 1], 0x5c
je 0x4f10e0
mov ebx, edi
jmp 0x4f0fa1
lea edx, [edi + 2]
push 0x5c
push edx
call fcn.00603190
add esp, 8
test eax, eax
je 0x4f1112
inc eax
push 0x5c
push eax
call fcn.00603190
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4f0fa1
mov esi, 3
jmp 0x4f0ff3
mov esi, 3
jmp 0x4f0ff3
push ebx
push esi
push str._s_04.4d
push edi
call fcn.00602336
add esp, 0x10
jmp 0x4f0f90
Function at 0x4f1704
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
push ebp
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
je 0x4f1743
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 5
je 0x4f1726
mov eax, ebp
pop ebp
pop esi
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
je 0x4f1743
mov eax, ebp
pop ebp
pop esi
ret
xor eax, eax
pop ebp
pop esi
ret
Function at 0x4f17c0
Capabilities:
Enumerate files on windows

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xc
mov dword [esp], edx
xor edx, edx
test ecx, ecx
je 0x4f180a
mov esi, 0x65ea40
mov edi, ecx
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x4f17d7
mov edi, ecx
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4f17f5
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4f17ed
mov edx, eax
cmp byte [eax + 0x65ea3f], 0x5c
je 0x4f180a
lea edx, [eax + 1]
mov byte [eax + 0x65ea40], 0x5c
lea eax, [edx + 0x65ea40]
mov byte [edx + 0x65ea40], 0
push 0x634338
push 0x62ca28
push eax
call fcn.00602336
add esp, 0xc
mov ecx, 0x13e
call fcn.004dbd80
mov ebp, eax
push ebp
push 0x65ea40
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f19b5
test dword [ebp], 0x10
je 0x4f1861
mov edx, 1
mov dword [esp + 8], edx
jmp 0x4f1867
xor edx, edx
mov dword [esp + 8], edx
lea edi, [ebp + 0x2c]
mov dword [esp + 4], edi
mov esi, 0x634340
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4f1893
or dl, dl
je 0x4f188f
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4f1893
add edi, 2
add esi, 2
or dl, dl
jne 0x4f1873
xor eax, eax
jmp 0x4f1898
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f18d2
mov esi, 0x63433c
mov edi, dword [esp + 4]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4f18c5
or dl, dl
je 0x4f18c1
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4f18c5
add edi, 2
add esi, 2
or dl, dl
jne 0x4f18a5
xor eax, eax
jmp 0x4f18ca
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4f197f
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
jne 0x4f199b
mov esi, 0x634340
mov edi, dword [esp + 4]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4f190c
or dl, dl
je 0x4f1908
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4f190c
add edi, 2
add esi, 2
or dl, dl
jne 0x4f18ec
xor eax, eax
jmp 0x4f1911
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f196c
mov esi, 0x63433c
mov edi, dword [esp + 4]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4f193e
or dl, dl
je 0x4f193a
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4f193e
add edi, 2
add esi, 2
or dl, dl
jne 0x4f191e
xor eax, eax
jmp 0x4f1943
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f196c
test dword [ebp], 0x10
je 0x4f1957
mov edx, 1
jmp 0x4f1959
xor edx, edx
mov edi, dword [esp + 0x20]
push edi
mov ecx, dword [esp + 8]
mov esi, dword [esp + 4]
call esi
test eax, eax
je 0x4f199b
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4f18e3
jmp 0x4f199b
mov esi, dword [esp + 0x20]
push esi
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 4]
call edi
cmp eax, 1
je 0x4f18d2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, ebp
call fcn.004dbc10
xor eax, eax
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov ecx, ebp
call fcn.004dbc10
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret 4
Function at 0x4f1bf4
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [0x65f344]
test eax, eax
jne 0x4f1c37
mov dword [0x65f344], 1
mov eax, dword [0x74c198]
test eax, eax
je 0x4f1c1d
mov dword [0x74c338], 1
test ebx, ebx
je 0x4f1c30
push dword [esp + 0xc]
push dword [esp + 0xc]
mov ecx, ebx
call fcn.004f1ab4
push ebx
call fcn.00602d8b
pop ecx
pop ebx
ret 8
Function at 0x4f6364
Capabilities:
Encode data using xor

Disassembly:
push ebx
sub esp, 8
mov ebx, edx
mov eax, dword [esp + 0x10]
and ebx, 0xffff
mov edx, ebx
add eax, 0x80000000
adc eax, 0x80000000
sar eax, 1
je 0x4f63f3
mov dword [esp + 4], esi
mov dword [esp], edi
mov esi, ecx
mov edi, ebx
shl edi, 8
xor ecx, ecx
mov cl, byte [esi]
and ebx, 0xff00
sar ebx, 8
xor ecx, ebx
and ecx, 0xff
movzx ebx, word [ecx*2 + 0x64d140]
xor edi, ebx
mov ebx, edi
and ebx, 0xffff
mov edi, edx
shl edi, 8
xor ecx, ecx
mov cl, byte [esi + 1]
and edx, 0xff00
sar edx, 8
xor ecx, edx
and ecx, 0xff
movzx edx, word [ecx*2 + 0x64d140]
xor edi, edx
mov edx, edi
and edx, 0xffff
add esi, 2
dec eax
jne 0x4f638d
mov esi, dword [esp + 4]
mov edi, dword [esp]
shl ebx, 0x10
add ebx, edx
mov eax, ebx
add esp, 8
pop ebx
ret 4

Function at 0x4f6404
Capabilities:
Encode data using xor

Disassembly:
push edi
push ebp
sub esp, 8
mov eax, edx
mov edx, dword [esp + 0x14]
lea edi, [ecx + 4]
lea ebp, [edx - 4]
and eax, 0xffff
mov edx, eax
add ebp, 0x80000000
adc ebp, 0x80000000
sar ebp, 1
je 0x4f6497
mov dword [esp], ebx
mov dword [esp + 4], esi
mov esi, eax
shl esi, 8
xor ebx, ebx
mov bl, byte [edi]
and eax, 0xff00
sar eax, 8
xor ebx, eax
and ebx, 0xff
movzx eax, word [ebx*2 + 0x64d140]
xor esi, eax
mov eax, esi
and eax, 0xffff
mov esi, edx
shl esi, 8
xor ebx, ebx
mov bl, byte [edi + 1]
and edx, 0xff00
sar edx, 8
xor ebx, edx
and ebx, 0xff
movzx ebx, word [ebx*2 + 0x64d140]
xor esi, ebx
mov edx, esi
and edx, 0xffff
add edi, 2
dec ebp
jne 0x4f6433
mov ebx, dword [esp]
mov esi, dword [esp + 4]
shl eax, 0x10
add eax, edx
mov dword [ecx], eax
add esp, 8
pop ebp
pop edi
ret 4

Function at 0x4f64a8
Capabilities:
Encode data using xor

Disassembly:
push edi
push ebp
sub esp, 8
mov eax, dword [esp + 0x14]
lea edi, [ecx + 4]
lea ebp, [eax - 4]
and edx, 0xffff
mov eax, edx
add ebp, 0x80000000
adc ebp, 0x80000000
sar ebp, 1
je 0x4f653a
mov dword [esp], ebx
mov dword [esp + 4], esi
mov esi, edx
shl esi, 8
xor ebx, ebx
mov bl, byte [edi]
and edx, 0xff00
sar edx, 8
xor ebx, edx
and ebx, 0xff
movzx edx, word [ebx*2 + 0x64d140]
xor esi, edx
mov edx, esi
and edx, 0xffff
mov esi, eax
shl esi, 8
xor ebx, ebx
mov bl, byte [edi + 1]
and eax, 0xff00
sar eax, 8
xor ebx, eax
and ebx, 0xff
movzx eax, word [ebx*2 + 0x64d140]
xor esi, eax
mov eax, esi
and eax, 0xffff
add edi, 2
dec ebp
jne 0x4f64d6
mov ebx, dword [esp]
mov esi, dword [esp + 4]
shl edx, 0x10
add edx, eax
cmp edx, dword [ecx]
jne 0x4f654d
xor eax, eax
add esp, 8
pop ebp
pop edi
ret 4
mov eax, 1
add esp, 8
pop ebp
pop edi
ret 4