joyce8/EMBER2024-capa huggingface dataset:
Function at 0x662f0bd4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x68
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, edx
mov byte [esp + 0x10], al
mov eax, dword [0x663ee02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.663984f0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.66366ee0
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x662f0c78
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x28]
mov dword [esp], edx
mov ecx, eax
call fcn.662ea10c
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.662e9ff0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.66367a60
sub esp, 4
add dword [esp + 0x18], 1
jmp 0x662f0c1c
mov dword [esp + 0x2c], str.dwsmaklthrtter
mov dword [esp + 0x24], 0x663b2ec0
mov dword [esp + 0x30], 0x663b2f38
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x30]
je 0x662f0d80
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.66399074
test al, al
je 0x662f0d76
cmp byte [esp + 0x10], 0
je 0x662f0d41
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, eax
call fcn.6636b530
sub esp, 8
lea eax, [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], 3
mov ecx, eax
call fcn.6636b530
sub esp, 8
mov eax, dword [esp + 0x34]
add eax, 4
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov ecx, eax
call fcn.662f0a40
sub esp, 4
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp], edx
mov ecx, eax
call fcn.662f0b18
sub esp, 4
test al, al
je 0x662f0d41
mov eax, 1
jmp 0x662f0d46
mov eax, 0
test al, al
je 0x662f0d6d
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 4
mov ecx, eax
call fcn.6636b530
sub esp, 8
mov ebx, dword [esp + 0x40]
jmp 0x662f0da1
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 4]
jmp 0x662f0da1
add dword [esp + 0x24], 8
jmp 0x662f0c90
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, eax
call fcn.6636b530
sub esp, 8
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.66367640
mov eax, ebx
mov ebx, dword [esp + 0x5c]
sub ebx, dword [0x663ee02c]
je 0x662f0dbf
call fcn.662c15c0
add esp, 0x68
pop ebx
ret 0xc
Function at 0x662f0f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [0x663ee02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.663984f0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.66366ee0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
je 0x662f0fcd
mov eax, dword [esp + 0x14]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.662e9ff0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.66367a60
sub esp, 4
add dword [esp + 0x14], 1
jmp 0x662f0f85
mov dword [esp + 0x38], 0x663a7280
mov dword [esp + 0x30], 0x663a7280
mov dword [esp + 0x3c], 0x663a7480
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x3c]
je 0x662f107b
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.66399074
test al, al
je 0x662f1071
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.66329900
mov eax, dword [esp + 0x40]
sub eax, 0x663a7280
sar eax, 2
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.662e9f20
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2f]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 1
mov ecx, eax
call fcn.66366e40
sub esp, 0xc
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.66329930
jmp 0x662f1086
add dword [esp + 0x30], 4
jmp 0x662f0fe5
mov eax, dword [esp + 0x1c]
mov ecx, eax
call fcn.66366ee0
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.66367640
mov eax, dword [esp + 0x5c]
sub eax, dword [0x663ee02c]
je 0x662f10a2
call fcn.662c15c0
mov eax, dword [esp + 0x1c]
add esp, 0x6c
ret 0xc
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x40462e
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x408850
call fcn.00408540
sub esp, 0x408
push ebx
push esi
xor ebx, ebx
push 8
mov dword [ebp - 4], ebx
pop esi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x404654
mov eax, 0x40c228
push ebx
push 0xc000000
push 3
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x4046a4
mov ecx, esi
dec esi
test ecx, ecx
je 0x4046a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x404648
cmp eax, 2
je 0x40469f
cmp eax, 0x20
je 0x404692
cmp eax, 0x21
jne 0x4046f8
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404648
push 1
pop ebx
jmp 0x4046f8
cmp esi, ebx
je 0x4046f8
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, 0x400
mov esi, eax
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp esi, ebx
jle 0x4046eb
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x414]
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [ebp - 0x14]
jmp 0x4046cc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
pop edi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.004047cd
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404716
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
mov ebx, 0x7d0
mov esi, 0x410088
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40474c
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 0xfa
jmp 0x40472c
push 0x410084
push dword [ebp + 0xc]
call sub.MSVCRT.dll_fopen
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x40476c
push edi
call sub.MSVCRT.dll_fclose
pop ecx
xor eax, eax
jmp 0x4047c0
push edi
push 0x400
lea eax, [ebp - 0x400]
push 1
push eax
call sub.MSVCRT.dll_fread
mov esi, eax
add esp, 0x10
xor eax, eax
test esi, esi
jbe 0x404798
xor byte [ebp + eax - 0x400], 0xec
inc eax
cmp eax, esi
jb 0x40478b
push ebx
push esi
lea eax, [ebp - 0x400]
push 1
push eax
call sub.MSVCRT.dll_fwrite
add esp, 0x10
test esi, esi
jne 0x40476c
push edi
call sub.MSVCRT.dll_fclose
push ebx
call sub.MSVCRT.dll_fclose
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404bc7
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x408920
call fcn.00408540
sub esp, 0x190
push ebx
push esi
push edi
push 1
mov edi, 0x410130
pop ebx
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], ebx
push eax
call fcn.0040505f
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004050e8
add esp, 0x18
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.004047cd
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x404c21
mov eax, 0x40c228
lea ecx, [ebp - 0x19c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
and dword [ebp - 0x10], 0
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x404d21
cmp byte [ebp - 0x170], 0x2e
je 0x404d00
test byte [ebp - 0x19c], 0x10
je 0x404cfd
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040505f
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040505f
add esp, 0x18
push dword [0x40c244]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.00404d83
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.004047cd
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.004047cd
mov al, byte [ebp + 0x18]
sub esp, 0x10
mov esi, esp
mov dword [ebp - 0x2c], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.004047cd
push dword [0x40c244]
lea eax, [ebp + 0x18]
mov ecx, esi
push 0
push eax
call fcn.00404d83
sub esp, 0x10
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov byte [ebp - 4], 7
call fcn.00404d59
mov byte [ebp - 4], 4
call fcn.00404bc7
add esp, 0x20
add dword [ebp - 0x10], eax
jmp 0x404d00
inc dword [ebp - 0x10]
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404c3f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004047cd
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp + 8]
call fcn.004047cd
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp + 0x18]
call fcn.004047cd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x405296
Capabilities:
Enumerate files on windows
Enumerate files recursively
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1658
call fcn.00408600
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], esi
mov eax, str._s.url
jne 0x4052b9
mov eax, str._s.
mov ebx, dword [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x450]
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x405307
cmp dword [ebp + 0x10], esi
je 0x405300
mov ecx, dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call fcn.00405296
jmp 0x4054b0
xor eax, eax
jmp 0x4054b0
push edi
push 1
pop edi
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x405479
cmp byte [ebp - 0x118], 0x2e
je 0x405479
lea eax, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x248]
push str._s_s
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
cmp dword [ebp + 0x10], esi
jne 0x405374
test byte [ebp - 0x144], 0x10
je 0x405479
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x248]
push 1
push eax
push dword [ebp + 8]
call fcn.00405296
jmp 0x405479
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xc50]
push 0x800
push eax
push 0x410ffc
push 0x4101ec
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4053b3
lea eax, [ebp - 0xc50]
push str._unknown_
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x118]
push 0x2e
push eax
call sub.MSVCRT.dll__mbsrchr
mov esi, eax
lea eax, [ebp - 0x118]
sub esi, eax
lea eax, [ebp - 0x118]
push esi
push eax
lea eax, [ebp - 0x248]
push eax
call sub.MSVCRT.dll_memcpy
and byte [ebp + esi - 0x248], 0
add esp, 0x14
test edi, edi
je 0x405443
push 0x5c
push ebx
call sub.MSVCRT.dll__mbsrchr
pop ecx
test eax, eax
pop ecx
jne 0x405400
mov eax, ebx
jmp 0x405407
push eax
call sub.MSVCRT.dll__mbsinc
pop ecx
push eax
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x248]
pop ecx
push eax
lea eax, [ebp - 0xc50]
push eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x1658]
push str._tr__td_nbsp___td__td_nbsp___td___tr__tr__td__b__s__b___td__td__a_href_s__s__a___td___tr_
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x14
xor edi, edi
jmp 0x405465
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xc50]
push eax
lea eax, [ebp - 0x1658]
push str._tr__td_nbsp___td__td__a_href_s__s__a___td___tr_
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1658]
push eax
push dword [ebp + 8]
call fcn.0040568d
xor esi, esi
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40530b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], esi
pop edi
je 0x4054ad
mov ecx, dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call fcn.00405296
push 1
pop eax
pop esi
pop ebx
leave
ret 0xc
Function at 0x405708
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0x410088
push eax
mov dword [ebp - 8], ecx
call fcn.00405c08
test eax, eax
je 0x4057d7
push ebx
push esi
push 2
push 0xffffffffffffffc8
push dword [ebp - 4]
call sub.MSVCRT.dll_fseek
push dword [ebp - 4]
mov esi, dword [ebp + 8]
push 0x38
push 1
pop ebx
push ebx
push esi
call sub.MSVCRT.dll_fread
add esp, 0x1c
cmp dword [esi], 0x113c1ab
je 0x405759
xor esi, esi
jmp 0x4057ca
push edi
push dword [esi + 8]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0
mov edi, eax
push dword [esi + 0xc]
push dword [ebp - 4]
call sub.MSVCRT.dll_fseek
push dword [ebp - 4]
push dword [esi + 8]
push ebx
push edi
call sub.MSVCRT.dll_fread
mov eax, dword [esi + 8]
add esp, 0x20
dec eax
cmp eax, ebx
jbe 0x40579b
mov dl, byte [edi + eax]
lea ecx, [edi + eax - 1]
xor byte [ecx], dl
mov dl, byte [ecx]
add dl, byte [edi + eax]
mov byte [ecx], dl
jmp 0x405784
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp + 8], 8
mov ecx, dword [ebp - 8]
lea eax, [ebx + edi]
push eax
push dword [esi]
call fcn.00405afc
add ebx, eax
add esi, 4
dec dword [ebp + 8]
jne 0x4057a7
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 1
pop esi
pop edi
push dword [ebp - 4]
call sub.MSVCRT.dll_fclose
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x405b33
Capabilities:
Delete file
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, 0x410084
push edi
push esi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_fopen
pop ecx
mov edi, eax
pop ecx
push 1
test edi, edi
pop ebx
jne 0x405b8c
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test bl, al
je 0x405b6e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405b88
push esi
push edi
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x405b8c
xor eax, eax
jmp 0x405c01
mov eax, dword [ebp + 0x10]
mov esi, 0x400
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
cmp eax, esi
jle 0x405bcc
push esi
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_fread
push edi
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_fwrite
mov eax, dword [ebp + 0x10]
add esp, 0x20
sub eax, dword [ebp - 4]
mov dword [ebp + 0x10], eax
jmp 0x405b97
push dword [ebp + 0x10]
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_fread
push edi
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_fwrite
push edi
call sub.MSVCRT.dll_fclose
add esp, 0x24
push 0x26
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406085
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
lea eax, [ebp - 0x2a4]
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push str._s.dll
push eax
call sub.MSVCRT.dll_sprintf
mov ecx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 0x2a4]
push dword [ebp + 0xc]
push eax
call fcn.00405c48
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersion_s
mov esi, 0x20006
mov edi, closesocket
je 0x406125
xor eax, eax
cmp dword [ebp - 0x8c], 1
sete al
test eax, eax
je 0x406125
push str.RunServices
lea eax, [ebp - 0x1a0]
push ebx
push eax
call sub.MSVCRT.dll_sprintf
mov ecx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1a0]
push esi
push eax
push edi
call fcn.004061b7
test eax, eax
je 0x406172
push 0x410690
lea eax, [ebp - 0x1a0]
push ebx
push eax
call sub.MSVCRT.dll_sprintf
mov ecx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1a0]
push esi
push eax
push edi
call fcn.004061b7
test eax, eax
je 0x406172
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1a0]
push esi
push eax
push closesocket
call fcn.004061b7
mov esi, eax
test esi, esi
jne 0x4061a5
cmp dword [ebp + 0x10], 0
jne 0x406186
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4061a3
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40735c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov eax, 0x408a04
call fcn.00408540
sub esp, 0x2f4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], esp
push eax
push ecx
mov ecx, ebx
call fcn.00407553
lea eax, [ebp - 0x300]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4073a1
xor eax, eax
jmp 0x4074dd
lea eax, [ebp - 0x170]
xor edi, edi
push 0x100
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4073cd
lea eax, [ebp - 0x20]
push 0x40c770
push eax
mov dword [ebp - 0x20], edi
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
jne 0x4073f1
lea eax, [ebp - 0x1c]
push 0x40c770
push eax
mov dword [ebp - 0x1c], edi
call sub.MSVCRT.dll__CxxThrowException
cmp word [esi + 0xa], 4
je 0x407409
lea eax, [ebp - 0x18]
push 0x40c770
push eax
mov dword [ebp - 0x18], edi
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [0x410ffc]
push 0xf
mov byte [ebp - 0x70], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
lea eax, [eax + edi*4]
je 0x4074bb
movsx ecx, word [esi + 0xa]
push ecx
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memcpy
movzx eax, byte [ebp - 0x11]
add esp, 0xc
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
lea eax, [ebp - 0x70]
push str._d._d._d._d
push eax
call sub.MSVCRT.dll_sprintf
mov al, byte [ebp + 0xb]
add esp, 0x18
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
push 0
call fcn.004047cd
lea eax, [ebp - 0x70]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404e51
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
mov byte [ebp - 4], 1
call fcn.00407542
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004047cd
inc edi
jmp 0x407420
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x4074cc
xor eax, eax
jmp 0x4074d4
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret