joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1042c06
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
je 0x1042cef
mov edi, dword [ebp + 8]
test edi, edi
je 0x1042cef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x104ae58]
mov ebx, 0x104ae4c
cmp eax, 0xea60
jae 0x1042c5a
push edi
push ebx
call fcn.01043959
test al, al
je 0x1042c5a
mov eax, dword [0x104ae48]
mov dword [esi], eax
jmp 0x1042cf6
push esi
push edi
push 0x100dd60
push 0x80000002
call fcn.01042ae3
cmp eax, 3
je 0x1042c75
cmp eax, 2
jne 0x1042c99
push esi
push edi
push 0x100dcf0
push 0x80000001
call fcn.01042ae3
cmp eax, 3
je 0x1042c90
cmp eax, 2
jne 0x1042c99
mov dword [ebp - 4], 0xc00d0fda
xor eax, eax
test eax, eax
je 0x1042cac
jle 0x1042ca9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x1042cf6
push edi
call fcn.0101b883
cmp eax, 5
jae 0x1042cf6
push 5
push ebx
lea ecx, [ebp - 0x10]
call fcn.01043a34
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x10]
call fcn.01043fb2
mov eax, dword [esi]
mov dword [0x104ae48], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x104ae58], eax
call fcn.01043f5e
jmp 0x1042cf6
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1042d8a
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1042e65
cmp dword [ebp + 8], 0
je 0x1042e65
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, 0xea60
cmp eax, dword [0x104ae6c]
mov esi, 0x104ae60
jae 0x1042de1
push dword [ebp + 8]
push esi
call fcn.01043959
test al, al
je 0x1042de1
mov eax, dword [0x104ae5c]
mov dword [edi], eax
jmp 0x1042e6c
push edi
push dword [ebp + 8]
push 0x100dd60
push 0x80000002
call fcn.01042d05
cmp eax, 3
je 0x1042dfe
cmp eax, 2
jne 0x1042e11
push edi
push dword [ebp + 8]
push 0x100dcf0
push 0x80000001
call fcn.01042d05
test eax, eax
je 0x1042e28
jle 0x1042e21
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 4], eax
jl 0x1042e6c
push dword [ebp + 8]
call fcn.0101b883
cmp eax, 5
jae 0x1042e6c
push 5
push esi
lea ecx, [ebp - 0x10]
call fcn.01043a34
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.01043fb2
mov eax, dword [edi]
mov dword [0x104ae5c], eax
call ebx
lea ecx, [ebp - 0x10]
mov dword [0x104ae6c], eax
call fcn.01043f5e
jmp 0x1042e6c
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401186
Capabilities:
Check if file exists

Disassembly:
jmp 0x433385
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov esi, dword [ebp + 0x94]
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.00508d00
push 0x104
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00402abd
lea eax, [ebp - 0x7c]
push eax
call fcn.00401d0c
push ebx
lea eax, [ebp - 0x7c]
push 0x5c
push eax
call fcn.00402027
add esp, 0x28
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43344e
test al, 0x10
je 0x43344e
push ebx
lea eax, [ebp - 0x7c]
push 1
push eax
call fcn.00401582
push ebx
lea eax, [ebp - 0x7c]
push 1
push eax
call fcn.004011f4
add esp, 0x18
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
mov dword [ebp - 0x80], eax
jne 0x433449
lea eax, [ebp - 0x7c]
push eax
call fcn.00402b5d
test eax, eax
pop ecx
je 0x433449
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push str._GetLastError_
push eax
push esi
push str.:3:DeleteDirectory___s___FAILED:_DeleteFiles___s___1__0__FAILED:__s_ld
call fcn.004020c2
add esp, 0x14
push dword [ebp - 0x80]
jmp 0x43347a
xor edi, edi
cmp eax, 0xffffffff
je 0x433478
push esi
call fcn.00402b5d
test eax, eax
pop ecx
je 0x433478
push esi
call fcn.004014d3
test eax, eax
pop ecx
jne 0x433478
push esi
push str.:3:DeleteDirectory___s___FAILED:_The_given_file_is_not_a_directory_
call fcn.004020c2
pop ecx
pop ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0x88]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x8c
leave
ret
Function at 0x40125d
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x42e172
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x94
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
mov ebx, dword [ebp + 0x74]
push esi
mov esi, dword [ebp + 0x7c]
push ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
call fcn.004010dc
test eax, eax
pop ecx
je 0x42e1a7
xor eax, eax
jmp 0x42e32e
push edi
call fcn.00401e97
push esi
push dword [ebp + 0x78]
xor edi, edi
push edi
mov esi, 0x80
push esi
push 3
push edi
push 7
push closesocket
push ebx
mov dword [ebp - 0x28], eax
call fcn.004016d1
mov ebx, eax
add esp, 0x24
cmp ebx, 0xffffffff
jne 0x42e284
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x1c]
cmp ebx, edi
mov dword [ebp - 0x24], eax
je 0x42e1ef
cmp dword [ebx], edi
jne 0x42e201
cmp dword [ebp + 0x78], edi
je 0x42e206
call fcn.00401e97
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x78]
jb 0x42e206
push dword [ebp - 0x24]
jmp 0x42e279
push ebx
push dword [ebp + 0x78]
push edi
push esi
push 3
push edi
push 7
push 0x2000000
push dword [ebp - 0x20]
call fcn.004016d1
mov ebx, eax
add esp, 0x24
cmp ebx, 0xffffffff
jne 0x42e284
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x42e23b
cmp dword [eax], edi
jne 0x42e278
cmp dword [ebp + 0x78], edi
je 0x42e24d
call fcn.00401e97
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x78]
jae 0x42e278
push dword [ebp + 0x78]
push dword [ebp - 0x20]
call fcn.00401f5f
test eax, eax
pop ecx
pop ecx
je 0x42e278
push esi
push str._GetLastError_
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push str.:8:GetFileSizeTimeOut___Seems_to_have_failed_because_of_an_access_rights_problem_:___s_:__u:_u:__s_ld
call fcn.004020c2
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42e311
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x42e2bd
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x42e29d
mov edi, dword [eax]
push str._GetLastError_
push edi
push dword [ebp + 0x78]
push dword [ebp - 0x20]
push str.:7:GetFileSizeTimeOut___s____ld___d__FAILED:__s
call fcn.00401375
add esp, 0x14
push 0x104f
jmp 0x42e301
cmp eax, edi
jbe 0x42e315
push edi
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e2de
cmp dword [ebp - 0x1c], edi
jne 0x42e315
push str._GetLastError_
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp + 0x78]
push dword [ebp - 0x20]
push str.:7:GetFileSizeTimeOut___s____ld__FAILED:_GetFileSize___returned__ld_but_ReadFile_____ldBytesRead__FAILED:__s
call fcn.004020c2
add esp, 0x18
push 0x105b
push str..File.c
push str.GetFileSizeTimeOut
push ebx
call fcn.00403134
xor eax, eax
jmp 0x42e32d
push 0x1060
push str..File.c
push str.GetFileSizeTimeOut
push ebx
call fcn.00403134
mov eax, dword [ebp - 0x24]
pop edi
mov ecx, dword [ebp + 0x68]
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x6c
leave
ret
Function at 0x4014d3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x42a892
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42a8a9
test al, 0x10
je 0x42a8a9
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x401825
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
jmp 0x42f9d0
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004010dc
test eax, eax
pop ecx
je 0x42f9e4
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
test eax, eax
jne 0x42fa24
push esi
call fcn.00402b5d
test eax, eax
pop ecx
je 0x42fa24
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
jne 0x42fa0c
xor eax, eax
jmp 0x42fa27
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call edi
jmp 0x42fa27
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x40190b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x4a9368
push esi
mov esi, dword [esp + 8]
push edi
push str..ScreenBuffer.c
mov edi, 0x693
call fcn.004a6d0a
test eax, eax
pop ecx
je 0x4a9423
mov eax, esi
call fcn.004a6d83
test eax, eax
je 0x4a9423
mov ecx, dword [esp + 0x10]
test ecx, ecx
jge 0x4a93a2
mov ecx, 0xff
mov eax, dword [esi]
imul eax, dword [esi + 4]
xor edi, edi
test eax, eax
jle 0x4a940f
push ebx
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4]
cmp byte [eax], cl
jne 0x4a93c5
test word [eax + 2], 0x2000
jne 0x4a93c5
xor edx, edx
jmp 0x4a93ca
xor edx, edx
mov byte [eax], cl
inc edx
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4 + 2]
movzx ebx, word [eax]
xor ebx, dword [esi + 0x10]
test bl, bl
je 0x4a93f3
mov bl, byte [esi + 0x10]
and bx, 0xff
cmp ecx, 0xff
je 0x4a93f0
or bx, 0x200
mov word [eax], bx
test edx, edx
je 0x4a9403
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4 + 2]
or word [eax], 0x2000
mov eax, dword [esi]
imul eax, dword [esi + 4]
inc edi
cmp edi, eax
jl 0x4a93af
pop ebx
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov eax, esi
call fcn.004a6d9e
xor eax, eax
inc eax
jmp 0x4a9425
xor eax, eax
pop edi
pop esi
ret

Function at 0x4019a1
Capabilities:
Enumerate processes

Disassembly:
jmp 0x4132c6
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0xac], eax
push ebx
push esi
mov esi, dword [ebp + 0xb8]
push edi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
call fcn.00508d00
add esp, 0xc
cmp esi, ebx
je 0x4133cf
cmp byte [esi], bl
je 0x4133cf
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x41333c
push dword [ebp + 0xbc]
push esi
push str.CountProcesses__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED_
call fcn.004020c2
add esp, 0xc
or eax, 0xffffffff
jmp 0x4133d1
lea eax, [ebp - 0x7c]
push eax
push edi
mov dword [ebp - 0x7c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x41337c
push dword [ebp + 0xbc]
push esi
push str.CountProcesses__s___d__FAILED:_Process32First___FAILED_
call fcn.004020c2
add esp, 0xc
push 0x8e7
push str..Console.c
push str.CountProcesses
push edi
call fcn.00403134
jmp 0x413334
mov dword [ebp - 0x80], ebx
cmp dword [ebp + 0xbc], ebx
push esi
lea eax, [ebp - 0x58]
push eax
je 0x413399
call fcn.0050da80
test eax, eax
pop ecx
pop ecx
je 0x4133a4
jmp 0x4133a7
call fcn.004020db
test eax, eax
pop ecx
pop ecx
je 0x4133a7
inc dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41337f
push 0x90b
push str..Console.c
push str.CountProcesses
push edi
call fcn.00403134
mov eax, dword [ebp - 0x80]
jmp 0x4133d1
xor eax, eax
mov ecx, dword [ebp + 0xac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0xb0
leave
ret
Function at 0x401a96
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x4139de
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1a4]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1a8]
mov esi, 0x207
xor ebx, ebx
push esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call fcn.00508d00
add esp, 0xc
cmp dword [ebp + 0x1ac], ebx
mov dword [ebp - 0x7c], ebx
jge 0x413a3d
mov dword [ebp + 0x1ac], esi
push 0x208
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.00508d00
push dword [ebp - 0x78]
call fcn.00401ff5
push edi
call fcn.004010dc
add esp, 0x14
test eax, eax
je 0x413a65
xor eax, eax
jmp 0x413ab9
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
je 0x413a9f
push esi
push str._GetLastError_
push edi
push str.:4:GetRegString___s___FAILED:_RegQueryValueEx___FAILED:__s_ld
call fcn.00401375
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413a61
mov eax, dword [ebp + 0x1ac]
dec eax
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00402abd
mov eax, dword [ebp - 0x78]
add esp, 0xc
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x198
leave
ret
Function at 0x401d89
Capabilities:
Get common file path
Set current directory

Disassembly:
jmp 0x4167ab
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.00508d00
add esp, 0xc
call fcn.00403080
mov dword [ebp - 0x80], 1
call fcn.004029a0
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
mov esi, str._GetLastError_
jne 0x416810
and dword [ebp - 0x80], eax
push esi
push str.:7:InitConsole___FAILED:_AllocConsole___FAILED:__s
call fcn.004020c2
pop ecx
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push 0xfffffffffffffff6
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push eax
call ebx
test eax, eax
jne 0x416839
and dword [ebp - 0x80], eax
push esi
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_INPUT_HANDLE__FAILED:__s
call fcn.004020c2
pop ecx
pop ecx
push 3
push 0xfffffffffffffff5
call edi
push eax
call ebx
xor ebx, ebx
test eax, eax
jne 0x416858
push esi
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_OUTPUT_HANDLE__FAILED:__s
mov dword [ebp - 0x80], ebx
call fcn.004020c2
pop ecx
pop ecx
push 1
push 0x412ec9
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x416879
push esi
push str.:7:InitConsole___FAILED:_SetConsoleCtrlHandler___FAILED:__s
mov dword [ebp - 0x80], ebx
call fcn.004020c2
pop ecx
pop ecx
mov edi, 0x35c
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x416899
push edi
push str.:9:InitConsole___FAILED:_SetConsoleOutputCP___FAILED:_could_not_set_code_page__d___
mov dword [ebp - 0x80], ebx
call fcn.004020c2
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
cmp eax, ebx
mov dword [0x62f264], eax
jne 0x4168b8
push esi
push str.:7:InitConsole___FAILED:_GetConsoleWindow___FAILED:__s
mov dword [ebp - 0x80], ebx
call fcn.004020c2
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x4168fa
lea eax, [ebp - 0x7c]
push eax
call fcn.00401de3
lea eax, [ebp - 0x7c]
mov dword [esp], 0x582f94
push eax
call fcn.004016c2
test eax, eax
pop ecx
pop ecx
jne 0x4168fa
push ebx
push ebx
call fcn.004031fc
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push ebx
call fcn.004031fc
push eax
call fcn.00402f13
mov eax, dword [ebp + 0x94]
add esp, 0xc
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x416920
mov dword [0x62f260], eax
call fcn.00401e97
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0050ea80
pop ecx
call fcn.0050ea90
call fcn.0050ea90
call fcn.0050ea90
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
call fcn.00508cf0
add ebp, 0x8c
leave
ret
Function at 0x401ece
Capabilities:
Terminate thread

Disassembly:
jmp 0x42c576
push ebx
push esi
push edi
push dword [0x637104]
xor esi, esi
call fcn.00402798
mov ebx, dword [esp + 0x14]
xor edi, edi
jmp 0x42c5aa
cmp edi, 0x56ce
jge 0x42c5b3
cmp ebx, dword [eax + 0xa8]
je 0x42c5b1
push dword [0x637104]
call fcn.00401aff
inc edi
test eax, eax
pop ecx
jne 0x42c58e
jmp 0x42c5b3
mov esi, eax
call fcn.0042c2a9
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x40206d
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x46c1d7
push ebp
lea ebp, [esp - 0x2ac]
sub esp, 0x32c
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x2a8], eax
push ebx
push esi
mov esi, dword [ebp + 0x2b4]
push edi
mov edi, dword [ebp + 0x2b8]
xor ebx, ebx
push 0x18e
lea eax, [ebp - 0x6a]
push ebx
push eax
mov dword [ebp - 0x80], esi
mov word [ebp - 0x6c], bx
call fcn.00508d00
push 0x7f
lea eax, [ebp + 0x229]
push ebx
push eax
mov byte [ebp + 0x228], bl
call fcn.00508d00
push 0x103
lea eax, [ebp + 0x125]
push ebx
push eax
mov byte [ebp + 0x124], bl
call fcn.00508d00
add esp, 0x24
cmp dword [ebp + 0x2bc], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
jge 0x46c261
mov dword [ebp + 0x2bc], 0x104
cmp esi, ebx
je 0x46c3d6
cmp edi, ebx
je 0x46c3d6
cmp dword [ebp + 0x2bc], ebx
jle 0x46c3d6
call fcn.00401e97
push 0x7e
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x228]
push esi
push eax
mov byte [edi], bl
call fcn.00402abd
lea eax, [ebp + 0x124]
push eax
call fcn.00401ff5
lea eax, [ebp - 0x78]
push eax
mov esi, 0x5a0354
lea eax, [ebp + 0x228]
push esi
push eax
call fcn.004019d3
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x70], eax
je 0x46c2d3
lea eax, [ebp - 0x78]
push eax
push esi
push ebx
call fcn.004019d3
add esp, 0xc
mov dword [ebp - 0x70], eax
push dword [ebp - 0x70]
call fcn.004010dc
test eax, eax
pop ecx
jne 0x46c306
push 0x104
push dword [ebp - 0x70]
lea eax, [ebp + 0x124]
push eax
call fcn.00402abd
push ebx
lea eax, [ebp + 0x124]
push 0x3a
push eax
call fcn.004025ea
add esp, 0x18
lea eax, [ebp + 0x228]
push eax
call fcn.00402ac2
test eax, eax
pop ecx
je 0x46c3d6
lea eax, [ebp - 0x6c]
push eax
push 0x101
mov byte [edi], bl
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x46c3d6
lea eax, [ebp + 0x228]
push eax
call fcn.004017d5
pop ecx
push 2
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x7c]
push eax
call sub.WSOCK32.dll_gethostbyaddr
mov esi, eax
cmp esi, ebx
je 0x46c37c
mov eax, dword [esi]
cmp eax, ebx
je 0x46c37c
push eax
call fcn.00508320
test eax, eax
pop ecx
jbe 0x46c37c
push dword [ebp + 0x2bc]
push dword [esi]
push edi
call fcn.00402abd
add esp, 0xc
xor esi, esi
jmp 0x46c37f
or esi, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
cmp esi, ebx
jne 0x46c3d6
push edi
call fcn.00508320
test eax, eax
pop ecx
jbe 0x46c3d6
push dword [ebp + 0x2bc]
lea eax, [ebp + 0x124]
push eax
push edi
call fcn.00402365
add esp, 0xc
call fcn.00401e97
sub eax, dword [ebp - 0x74]
cmp eax, 0x1388
jbe 0x46c3d2
call fcn.00401e97
sub eax, dword [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x80]
push str.:4:ResolveIPToHostName___took_too_long_to_resolve__s_to__s:__ums
call fcn.004020c2
add esp, 0x10
mov eax, edi
jmp 0x46c3d8
xor eax, eax
mov ecx, dword [ebp + 0x2a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x2ac
leave
ret
Function at 0x402298
Capabilities:
Move file

Disassembly:
jmp 0x42a23c
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x19c]
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x89]
push ebx
push eax
mov byte [ebp + 0x88], bl
call fcn.00508d00
push esi
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.00508d00
push dword [ebp - 0x80]
call fcn.004010dc
add esp, 0x1c
test eax, eax
jne 0x42a384
push edi
call fcn.004010dc
test eax, eax
pop ecx
jne 0x42a384
inc esi
push esi
lea eax, [ebp + 0x88]
push edi
push eax
call fcn.00402abd
lea eax, [ebp + 0x88]
push eax
call fcn.00401de3
lea eax, [ebp + 0x88]
push eax
call fcn.00401d0c
lea eax, [ebp + 0x88]
push eax
call fcn.00508320
add esp, 0x18
jmp 0x42a2fa
lea ecx, [ebp + eax + 0x88]
cmp byte [ecx], 0x5c
jne 0x42a2ff
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x42a2ec
lea eax, [ebp + 0x88]
push eax
call fcn.00402a1d
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call fcn.00402abd
lea eax, [ebp - 0x7c]
push eax
call fcn.00401de3
lea eax, [ebp - 0x7c]
push eax
call fcn.00401d0c
lea eax, [ebp - 0x7c]
push eax
call fcn.00508320
add esp, 0x1c
jmp 0x42a343
lea ecx, [ebp + eax - 0x7c]
cmp byte [ecx], 0x5c
jne 0x42a348
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x42a338
lea eax, [ebp - 0x7c]
push eax
call fcn.00403224
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x88]
push eax
call fcn.00401758
add esp, 0xc
cmp dword [ebp + 0x1a0], ebx
lea eax, [ebp + 0x88]
je 0x42a380
push 0xb
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x42a386
push 0xa
jmp 0x42a374
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x190
leave
ret
Function at 0x40245a
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x415325
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [ebp + 0xa8]
push edi
mov ebx, 0xff
push ebx
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x6b]
push 0
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], pe_nt_image_headers32
mov byte [ebp - 0x6c], 0
call fcn.00508d00
and word [ebp - 0x70], 0
xor eax, eax
and dword [ebp - 0x78], eax
lea edi, [ebp - 0x6e]
push esi
stosw word es:[edi], ax
call fcn.0040183e
add esp, 0x10
test eax, eax
je 0x415394
xor eax, eax
jmp 0x415458
push dword [ebp - 0x74]
lea esi, [ebp - 0x6c]
push dword [ebp - 0x7c]
mov eax, esi
push ebx
push eax
jmp 0x4153e6
lea eax, [ebp - 0x6c]
cmp esi, eax
je 0x4153b4
push 1
push esi
call fcn.0050a6d0
pop ecx
pop ecx
mov eax, dword [ebp - 0x80]
push 0x1594
lea edi, [eax + eax]
push str..Console.c
push 1
lea eax, [edi + 0xa]
push eax
push 1
mov dword [ebp - 0x80], edi
call fcn.00509d00
mov esi, eax
add esp, 0x14
test esi, esi
je 0x41538d
push dword [ebp - 0x74]
dec edi
push dword [ebp - 0x7c]
push edi
push esi
call fcn.0050f620
add esp, 0x10
cmp eax, 0xffffffff
je 0x4153a3
mov edi, dword [ebp + 0xa0]
mov ebx, dword [ebp + 0xa4]
lea ecx, [ebp - 0x78]
push ecx
mov word [ebp - 0x70], di
mov word [ebp - 0x6e], bx
push dword [ebp - 0x70]
push eax
push esi
call fcn.00401645
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
test eax, eax
jne 0x415444
cmp byte [0x6313b3], al
jne 0x415444
push str._GetLastError_
push esi
push ebx
push edi
push str.:3:OutConsole__d___d___s__FAILED:_WriteConsoleOutputCharacter___FAILED:__s
call fcn.00401375
add esp, 0x14
mov byte [0x6313b3], 1
lea eax, [ebp - 0x6c]
cmp esi, eax
je 0x415455
push 1
push esi
call fcn.0050a6d0
pop ecx
pop ecx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x98
leave
ret