joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052cc
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040554f
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405300
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0a8], eax
jmp 0x405469
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x40531e
test eax, eax
je 0x40541a
test byte [ebp + 0xc], 2
je 0x40541a
mov esi, 0x42b498
push edi
push esi
call sub.KERNEL32.dll_lstrcpyA
test ebx, ebx
je 0x40533b
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405341
push edi
call fcn.004054b6
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405410
cmp byte [ebp - 0x118], 0x2e
jne 0x40538a
cmp byte [ebp - 0x117], 0x2e
je 0x4053f3
cmp byte [ebp - 0x117], 0
je 0x4053f3
lea eax, [ebp - 0x118]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [ebp - 0x144]
test al, 0x10
je 0x4053b6
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053f3
push dword [ebp + 0xc]
push edi
call fcn.004052cc
jmp 0x4053f3
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4053eb
test byte [ebp + 0xc], 4
je 0x4053e3
push edi
push 0xfffffffffffffff1
call fcn.00404d32
push 0
push edi
call fcn.004056aa
jmp 0x4053f3
inc dword [0x42f0a8]
jmp 0x4053f3
push edi
push 0xfffffffffffffff2
call fcn.00404d32
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40536f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40541a
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405469
cmp dword [ebp - 4], esi
jne 0x40542f
inc dword [0x42f0a8]
jmp 0x405469
push edi
call fcn.00405c3e
test eax, eax
je 0x405469
push edi
call fcn.0040546f
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405461
test byte [ebp + 0xc], 4
je 0x405427
push edi
push 0xfffffffffffffff1
call fcn.00404d32
push esi
push edi
call fcn.004056aa
jmp 0x405469
push edi
push 0xffffffffffffffe5
call fcn.00404d32
pop edi
pop esi
leave
ret 8
Function at 0x40554f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b898
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.00405502
mov edi, eax
test edi, edi
jne 0x405570
xor eax, eax
jmp 0x4055c2
push edi
call fcn.00405ba5
test byte [0x42f030], 0x80
je 0x405589
mov al, byte [edi]
test al, al
je 0x40556c
cmp al, 0x5c
je 0x40556c
sub edi, esi
jmp 0x4055a1
call fcn.00405c3e
test eax, eax
je 0x40559b
test byte [eax], 0x10
je 0x40556c
push esi
call fcn.004054b6
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40558d
call fcn.0040546f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405633
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
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 0x405662
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
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056a6
test edi, edi
jne 0x40566d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056a0
Function at 0x4056aa
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405c7c
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4056d6
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40581a
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c620], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c620
je 0x40571a
push 1
push 0
push esi
call fcn.00405633
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405820
cmp eax, edi
jg 0x405820
mov esi, 0x42c098
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405820
cmp eax, edi
jg 0x405820
push esi
push ebp
push str._s_s_r_n
push 0x42bc98
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40581a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405802
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4057f6
push str._Rename__r_n
push edi
call fcn.004055c7
test eax, eax
jne 0x405827
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x42bc98
push eax
call fcn.00405613
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42f0b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409300
push eax
call fcn.004055c7
test eax, eax
je 0x4057dd
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405850
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405843
sub eax, edi
jmp 0x4057df
Function at 0x405854
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
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 0x4058b8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058a7
cmp dword [ebp + 0x14], 1
je 0x4058a9
cmp dword [ebp + 0x14], 2
je 0x4058a9
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405cd9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca24], 0
push esi
jne 0x405d10
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405cea
mov dword [ecx*4 + 0x42ca20], eax
inc ecx
cmp ecx, 0x100
jl 0x405ce5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d41
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ca20]
xor eax, esi
inc ecx
dec edx
jne 0x405d23
pop edi
not eax
pop esi
ret 0xc

Function at 0x43f950
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
or ebp, 0xffffffff
jmp 0x43f972
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43f979
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43f968
mov eax, 1
add ebx, ebx
jne 0x43f98b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43f980
jne 0x43f99c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f980
xor ecx, ecx
sub eax, 3
jb 0x43f9b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43fa22
mov ebp, eax
add ebx, ebx
jne 0x43f9bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43f9c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43f9ec
inc ecx
add ebx, ebx
jne 0x43f9d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43f9cd
jne 0x43f9e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f9cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43fa0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43f9fd
jmp 0x43f96e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43fa0c
add edi, ecx
jmp 0x43f96e
pop esi
mov edi, esi
mov ecx, 0x844
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43fa2a
cmp byte [edi], 0xd
jne 0x43fa2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43fa2f
lea edi, [esi + 0x3d000]
mov eax, dword [edi]
or eax, eax
je 0x43faa7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4801c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x480d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43fa5c
mov ecx, edi
jns 0x43fa8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x480d4]
or eax, eax
je 0x43faa1
mov dword [ebx], eax
add ebx, 4
jmp 0x43fa79
call dword [esi + 0x480d8]
popal
jmp section.UPX0
Function at 0x564cad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00564970

Function at 0x564cb8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00564af1

Function at 0x569182
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00568e42
Function at 0x40173c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x404a94]
imul eax, eax, 0x8088405
inc eax
mov dword [0x404a94], eax
ret

Function at 0x4017a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor eax, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xchg ah, al
lodsb al, byte [esi]
xor al, ah
stosb byte es:[edi], al
jne 0x4017b0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4017bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push esi
cld
mov esi, dword [ebp + 8]
xor edx, edx
lodsb al, byte [esi]
rol edx, 7
xor dl, al
or al, al
jne 0x4017ca
xchg edx, eax
pop esi
pop esi
pop ebp
ret

Function at 0x4017f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, 0x100
cmp dword [ebp + 0xc], esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
jle 0x401851
push ebx
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffeff
shr ebx, 8
inc ebx
mov eax, ebx
imul eax, eax, 0xffffff00
add dword [ebp + 0xc], eax
xor ecx, ecx
call fcn.0040173c
mov dword [ebp + ecx*4 - 0x104], eax
inc ecx
cmp ecx, 0x40
jl 0x401828
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call edi
dec ebx
jne 0x401826
pop ebx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call edi
pop edi
pop esi
leave
ret
Function at 0x40186a
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 0x20]
mov dword [ebp - 0x10], esi
push esi
call dword [sym.imp.WININET.DLL_InternetOpenA]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x4018a6
lea ecx, [ebp - 4]
push ecx
push 0x84080700
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.DLL_InternetOpenUrlA]
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x4018ad
xor eax, eax
jmp 0x4019c0
push ebx
push edi
mov esi, 0x500000
push esi
call fcn.00401771
mov edi, dword [sym.imp.WININET.DLL_InternetReadFile]
mov ebx, eax
pop ecx
mov dword [ebp - 8], ebx
jmp 0x4018de
test eax, eax
je 0x4018ef
cmp dword [ebp + 0x24], 0
je 0x4018db
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.DLL_Sleep]
add ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 4], 0
jne 0x4018c8
mov ecx, dword [ebp - 8]
sub ebx, ecx
xor edx, edx
cmp dword [ebp + 0x10], edx
mov dword [ebp - 0x14], ebx
je 0x401907
cmp ebx, dword [ebp + 0x10]
jl 0x4019a2
mov esi, dword [ebp + 0x18]
cmp esi, edx
je 0x401937
mov eax, dword [ebp + 0x14]
cmp eax, edx
je 0x401937
cmp ebx, esi
jl 0x4019a2
cmp esi, edx
jle 0x401937
sub ecx, eax
movzx edi, byte [ecx + eax]
movsx ebx, byte [eax]
cmp edi, ebx
jne 0x4019a2
inc edx
inc eax
cmp edx, esi
jl 0x401923
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 1
jne 0x401950
push dword [ebp + 0x10]
push dword [ebp - 8]
push eax
call fcn.00401784
add esp, 0xc
jmp 0x40199f
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019a2
mov edi, dword [ebp - 8]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [ebp + 0x1c], 0
je 0x401998
cmp dword [ebx + edi - 4], 0xfefefefe
jne 0x401998
push dword [ebp + 0x1c]
push esi
call fcn.004017f2
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
call fcn.0040175e
mov esi, dword [sym.imp.WININET.DLL_InternetCloseHandle]
pop ecx
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4019c3
Capabilities:
Modify service
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push edi
push 0x23
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerA]
mov ebp, eax
cmp ebp, edi
je 0x401a20
push ebx
push esi
push 0x22
push 0x4038a8
push ebp
call dword [sym.imp.ADVAPI32.DLL_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x401a1b
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.DLL_ChangeServiceConfigA]
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.DLL_ControlService]
push esi
call ebx
push ebp
call ebx
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x1c
ret

Function at 0x401a26
Capabilities:
Copy file
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push 0x1000
call fcn.00401771
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
call fcn.004017a3
mov ebx, dword [ebp + 0x14]
add esp, 0xc
xor esi, esi
push esi
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x401ab5
push edi
push esi
push esi
push 3
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 2
push esi
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 4]
push esi
push eax
call fcn.0040173c
and eax, 0xfff
push eax
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp + 0x18]
lea ecx, [eax + 0x10]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push dword [ebp - 8]
call fcn.0040175e
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x20]
call fcn.004017a3
add esp, 8
push dword [ebp - 4]
lea eax, [ebp - 0x208]
push ebx
push 1
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
call dword [sym.imp.SHLWAPI.DLL_SHSetValueA]
pop esi
pop ebx
leave
ret
Function at 0x401af7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
push esi
push edi
lea eax, [ebp - 0x418]
push eax
push dword [section..data]
call fcn.004017a3
add esp, 8
mov esi, 0x200
push esi
lea eax, [ebp - 0x618]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x818]
push eax
push dword [0x404004]
call fcn.004017a3
add esp, 8
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [ebp + eax - 0x218]
push esi
push dword [0x404008]
call fcn.004017a3
add esp, 8
push edi
push edi
push 3
push edi
push 1
push closesocket
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push closesocket
push dword [0x40400c]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x618]
push eax
push esi
push dword [0x404010]
call fcn.00401a26
push reloc.WS2_32.DLL_bind
push dword [0x404014]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x618]
push eax
push esi
push dword [0x404018]
call fcn.00401a26
add esp, 0x40
pop edi
pop esi
leave
ret

Function at 0x401c4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00401c23
pop ecx
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push closesocket
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401c8a
xor eax, eax
jmp 0x401cb3
push esi
lea eax, [ebp - 4]
push eax
push 0x100000
push dword [0x404030]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [0x404034], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x401cb7
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0x200
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
push esi
call fcn.004017bf
add esp, 4
mov dword [ebp - 4], eax
lea edi, [ebp - 0x44]
rol dword [ebp - 4], 1
push dword [ebp - 4]
push 0x404a98
push edi
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add edi, eax
lea eax, [ebp - 0x1c]
cmp edi, eax
jb 0x401ce3
lea eax, [ebp - 0x44]
mov byte [esi], 0x43
mov byte [esi + 1], 0x4c
mov byte [esi + 2], 0x53
mov byte [esi + 3], 0x49
mov byte [esi + 4], 0x44
mov byte [esi + 5], 0x5c
push eax
add esi, 6
push esi
mov byte [ebp - 0x44], 0x7b
mov byte [ebp - 0x3b], 0x2d
mov byte [ebp - 0x36], 0x2d
mov byte [ebp - 0x31], 0x2d
mov byte [ebp - 0x2c], 0x2d
mov byte [ebp - 0x1f], 0x7d
mov byte [ebp - 0x1e], 0
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop edi
pop esi
leave
ret

Function at 0x401d4d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
lea eax, [ebp - 0x10c]
push eax
xor esi, esi
call fcn.00401cb7
pop ecx
push esi
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
push closesocket
mov dword [ebp - 8], 0x100000
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
test eax, eax
jne 0x401dbf
lea eax, [ebp - 8]
push eax
push dword [0x404030]
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x401db6
mov eax, dword [ebp - 8]
cmp eax, 0x10
jbe 0x401db6
mov dword [0x404034], eax
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x401f46
Capabilities:
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x404030]
mov ecx, dword [0x40401c]
and dword [0x404038], 0
sub esp, 0x110
push ebx
push esi
push edi
mov dword [eax], ecx
mov ecx, dword [0x40403c]
push 4
pop ebx
add eax, ebx
mov dword [eax], ecx
add eax, ebx
xor ecx, ecx
lea edx, [eax + 4]
mov esi, dword [ecx*4 + 0x404054]
test esi, esi
je 0x401f8f
mov dword [edx], esi
inc ecx
add edx, ebx
cmp ecx, 0x10
jl 0x401f7a
mov dword [eax], ecx
lea eax, [eax + ecx*4 + 4]
xor ecx, ecx
lea edx, [eax + 4]
mov esi, dword [ecx*4 + 0x404b1b]
test esi, esi
je 0x401faf
mov dword [edx], esi
inc ecx
add edx, ebx
cmp ecx, 0x10
jl 0x401f9a
mov dword [eax], ecx
lea edi, [eax + ecx*4 + 4]
lea eax, [edi + 4]
mov dword [ebp - 4], eax
mov esi, 0x4040b4
mov dword [ebp - 8], 0x40
mov ecx, dword [esi - 0x20]
test ecx, ecx
je 0x402018
mov dword [eax], ecx
add dword [ebp - 4], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [esi - 0x1c]
add eax, 0x100
mov dword [ecx], eax
add dword [ebp - 4], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [esi]
mov dword [ecx], eax
add dword [ebp - 4], ebx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
add dword [ebp - 4], ebx
lea eax, [esi - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
add esi, 0x28
dec dword [ebp - 8]
jne 0x401fc7
mov dword [edi], 0x40
mov eax, dword [ebp - 4]
sub eax, dword [0x404030]
xor esi, esi
test eax, eax
mov dword [0x404034], eax
jle 0x40205a
mov ecx, dword [0x404030]
add ecx, esi
mov dl, byte [ecx]
test dl, dl
je 0x402055
cmp dl, 0x11
je 0x402055
xor byte [ecx], 0x11
mov eax, dword [0x404034]
inc esi
cmp esi, eax
jl 0x40203a
lea eax, [ebp - 0x110]
push eax
call fcn.00401c23
pop ecx
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4020a7
push esi
lea eax, [ebp - 4]
push eax
push dword [0x404034]
push dword [0x404030]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x110]
push eax
call fcn.00401cb7
pop ecx
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x110]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
test eax, eax
jne 0x4020fa
push dword [0x404034]
push dword [0x404030]
push 3
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret