joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4809ff
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x4809be
push 0
push 0
mov dword [esi + 0x59c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x430], eax
pop esi
mov eax, ecx
pop ebp
ret 4

Function at 0x480a36
Capabilities:
Check mutex on windows

Disassembly:
push 8
mov eax, 0x49a67e
call fcn.00496159
mov esi, ecx
lea ebx, [esi + 0x420]
push str.Unspecified_error.
mov ecx, ebx
call fcn.0045e612
push dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.0046a13d
test eax, eax
je 0x480a9f
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 8]
call fcn.0046552e
and dword [ebp - 4], 0
push 0
mov ecx, eax
call fcn.0045f46b
push eax
push str.Error_reading_crash_info:__s
push ebx
call fcn.00460165
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.0045ddba
xor eax, eax
call fcn.00496231
ret 4
mov eax, dword [esi + 0x10]
push str.RTLReading
push 0x49e944
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00460902
push 0x49e940
push dword [ebp - 0x10]
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 0x18
test eax, eax
jne 0x480ada
push 1
call dword [sym.imp.USER32.dll_SetProcessDefaultLayout]
cmp dword [esi + 0xa4], 0
je 0x480b51
mov ecx, esi
call fcn.0047c8b3
test eax, eax
jne 0x480afe
lea ecx, [esi + 0x138]
call fcn.0049430a
lea ecx, [ebp - 0x10]
jmp 0x480a90
push dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.0046a13d
test eax, eax
je 0x480b3f
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 8]
call fcn.0046552e
push 0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0045f46b
push eax
push str.Error_reading_crash_info:__s
push ebx
call fcn.00460165
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0045ddba
jmp 0x480af9
cmp dword [esi + 0xc4], 0
jne 0x480b51
mov ecx, esi
call fcn.00479a78
jmp 0x480aee
xor eax, eax
cmp dword [esi + 0x5c], eax
jne 0x480b72
push 1
mov ecx, esi
call fcn.004809ff
push str.Success.
mov ecx, ebx
call fcn.0045e612
xor esi, esi
inc esi
jmp 0x480bca
push str.Local43773530_129a_4298_88f2_20eea3e4a59b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x480b9d
push str.Another_CrashSender.exe_already_tries_to_resend_recent_reports.
mov ecx, ebx
call fcn.0045e612
jmp 0x480af9
lea ecx, [esi + 8]
call fcn.00463059
test eax, eax
jne 0x480bb0
push str.There_are_no_reports_for_us_to_send.
jmp 0x480b91
lea ecx, [esi + 8]
call fcn.004652c1
test eax, eax
jne 0x480b61
push str.Not_enough_time_elapsed_to_remind_user_about_recent_crash_reports.
mov ecx, ebx
call fcn.0045e612
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.0045ddba
mov eax, esi
jmp 0x480a97
Function at 0x480c9e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c8e6c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR100.dll_rewind]
push esi
push 1
lea eax, [ebp - 0x14]
push 0xe
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x14
pop esi
cmp eax, 1
je 0x480cd5
xor eax, eax
jmp 0x480ced
push 2
lea eax, [ebp - 0x14]
push 0x4a1228
push eax
call sub.MSVCR100.dll_memcmp
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049614a
leave
ret

Function at 0x480cf9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c8e6c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR100.dll_rewind]
push esi
push 8
lea eax, [ebp - 0xc]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
push 8
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.00445b79
mov ecx, dword [ebp - 4]
add esp, 0x20
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0049614a
leave
ret

Function at 0x480d45
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_rewind]
push dword [ebp + 8]
lea eax, [ebp - 4]
push 2
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x14
cmp eax, 2
je 0x480d6f
xor eax, eax
leave
ret
mov eax, 0xd8ff
xor ecx, ecx
cmp word [ebp - 4], ax
sete cl
mov eax, ecx
leave
ret
Function at 0x4814c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_rewind]
push dword [ebp + 8]
lea eax, [ebp - 4]
push 3
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x14
cmp eax, 3
je 0x4814ee
xor eax, eax
leave
ret
push 3
lea eax, [ebp - 4]
push 0x4a122c
push eax
call sub.MSVCR100.dll_memcmp
add esp, 0xc
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x481508
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x5c]
push eax
lea ebx, [esi + 0x3c]
push ebx
call fcn.0041e760
pop ecx
pop ecx
cmp eax, 1
je 0x481570
mov edi, 0x1000
push edi
push ebx
call fcn.0041e580
pop ecx
pop ecx
mov dword [esi + 0x58], eax
test eax, eax
je 0x481577
push dword [esi + 0x24]
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x481577
push eax
push ebx
call fcn.0041e610
pop ecx
pop ecx
test eax, eax
jne 0x481577
lea eax, [esi + 0x5c]
push eax
push ebx
call fcn.0041e760
pop ecx
pop ecx
cmp eax, 1
jne 0x48152e
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x481853
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x4bc86c
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 8], edi
mov dword [esi], edi
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 4], edi
je 0x4818fd
push ebx
push dword [ebp - 4]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
push 2
pop edi
push edi
lea eax, [ebp + 0xc]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, edi
jne 0x4818fc
mov ax, word [ebp + 0xc]
cmp al, 0xff
jne 0x4818b0
cmp ah, 0xfe
jne 0x4818c2
mov dword [ebp - 8], edi
jmp 0x4818fa
cmp al, 0xfe
jne 0x4818c2
cmp ah, 0xff
jne 0x4818c2
mov dword [ebp - 8], 3
jmp 0x4818fa
push dword [ebp - 4]
call dword [sym.imp.MSVCR100.dll_rewind]
push dword [ebp - 4]
lea eax, [ebp + 8]
push 3
pop edi
push edi
push 1
push eax
call ebx
add esp, 0x14
cmp eax, edi
jne 0x4818fc
cmp byte [ebp + 8], 0xef
jne 0x4818fc
cmp byte [ebp + 9], 0xbb
jne 0x4818fc
cmp byte [ebp + 0xa], 0xbf
jne 0x4818fc
mov dword [ebp - 8], 1
mov dword [esi], edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
leave
ret 8
Function at 0x484264
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
push edi
je 0x484277
call fcn.00483bae
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x484299
xor eax, eax
jmp 0x4842c4
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4

Function at 0x484dcd
Capabilities:
Read file via mapping

Disassembly:
push 0x10
mov eax, 0x49a9b5
call fcn.00496159
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, ecx
xor edx, edx
div dword [esi + 8]
mov edi, ecx
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x1c], eax
sub edi, edx
sub ecx, edi
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x30]
push eax
mov dword [ebp - 0x18], ecx
call fcn.00483dac
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [esi + 0x34]
je 0x484e2c
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
push ecx
push edi
push 0
push 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp ebx, dword [esi + 0x34]
je 0x484e4d
mov dword [ebx + 0x10], edi
jmp 0x484e5b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.00484c5e
mov dword [eax], edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
add eax, edi
call fcn.00496231
ret 8
Function at 0x48672c
Capabilities:
Get file size

Disassembly:
push 0x14
mov eax, 0x49accd
call fcn.00496159
mov edi, ecx
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, dword [0x4c8014]
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 1
call fcn.0045e829
mov ecx, edi
call fcn.004865a9
cmp eax, ebx
jne 0x48678b
lea ecx, [ebp + 0xc]
call fcn.0045ddba
lea ecx, [ebp + 8]
call fcn.0045ddba
xor eax, eax
call fcn.00496231
ret 8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 8]
cdq
add dword [esi], eax
lea eax, [ebp + 8]
push eax
adc dword [esi + 4], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x14]
call fcn.004864c2
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edi + 0x18]
je 0x486771
push ebx
add ecx, 0x10
call fcn.0045f46b
push eax
lea ecx, [ebp - 0x10]
call fcn.0045ffe5
push ebx
push ebx
push 3
push ebx
push 1
push connect
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x4867ec
lea ecx, [ebp - 0x10]
call fcn.0045ddba
jmp 0x486771
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [ebp - 0x14]
cmp eax, ebx
jne 0x486806
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4867e2
mov eax, dword [ebp - 0x20]
add dword [esi], eax
mov eax, dword [ebp - 0x1c]
adc dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4c8014]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 3
call fcn.0045e829
mov ecx, edi
call fcn.00486452
cmp eax, ebx
jne 0x486868
lea ecx, [ebp - 0x14]
call fcn.0045ddba
lea ecx, [ebp - 0x10]
call fcn.0045ddba
lea ecx, [ebp + 0xc]
call fcn.0045ddba
lea ecx, [ebp + 8]
call fcn.0045ddba
mov eax, ebx
jmp 0x486783
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 8]
cdq
add dword [esi], eax
adc dword [esi + 4], edx
xor ebx, ebx
inc ebx
jmp 0x486841
Function at 0x487de2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.00487d27
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
xor eax, eax
push eax
push eax
push esi
push 0x4879e5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop esi
pop ebp
ret 8

Function at 0x4899a2
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4

Function at 0x48a46f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x48a4e3
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [eax - 8]
lea esi, [esi + esi + 2]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x48a4dd
mov ecx, dword [edi]
mov edx, dword [ecx - 8]
add edx, edx
push edx
push ecx
shr esi, 1
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x48a4e6
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x48b722
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x48ba82
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.00480128
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
call fcn.00478cbd
push 5
push 0
push 0
push dword [eax]
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.0045ddba
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x48e1d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], esi
je 0x48e242
mov eax, dword [ebp + 0xc]
push edi
push 3
cdq
pop ecx
idiv ecx
push eax
mov dword [ebp + 0xc], eax
call fcn.0049608e
pop ecx
mov edi, eax
cmp dword [ebp + 0xc], esi
jle 0x48e227
mov ecx, dword [ebp + 8]
inc ecx
movzx edx, byte [ecx + 1]
movzx eax, byte [ecx - 1]
add eax, edx
movzx edx, byte [ecx]
add eax, edx
push 3
cdq
pop ebx
idiv ebx
add ecx, ebx
mov byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x48e204
mov ebx, dword [ebp - 4]
push dword [ebx + 0x40]
push 1
push dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCR100.dll_fwrite]
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 0x14
pop edi
jmp 0x48e256
push dword [ebx + 0x40]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0xc

Function at 0x48e873
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x49b871
call fcn.004961c2
xor edi, edi
lea esi, [ecx + 0x40]
push 0x4bc87c
push edi
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], edi
mov dword [esi], edi
call fcn.0045f46b
push eax
push esi
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
cmp dword [esi], edi
jne 0x48e8b8
lea ecx, [ebp + 0x14]
call fcn.0045ddba
xor eax, eax
call fcn.00496245
ret 0x10
push 0xe
lea eax, [ebp - 0x20]
push edi
push eax
call sub.MSVCR100.dll_memset
push 0x28
pop ebx
push ebx
lea eax, [ebp - 0x48]
push edi
push eax
call sub.MSVCR100.dll_memset
mov eax, 0x4d42
mov word [ebp - 0x20], ax
xor eax, eax
xor ecx, ecx
mov word [ebp - 0x1a], ax
mov word [ebp - 0x18], ax
mov eax, dword [ebp + 0x10]
cmp eax, edi
sete cl
lea ecx, [ecx + ecx + 1]
imul ecx, dword [ebp + 8]
mov edx, ecx
and edx, reloc.WS2_32.dll_closesocket
jns 0x48e906
dec edx
or edx, 0xfffffffc
inc edx
push dword [esi]
add edx, ecx
mov ecx, dword [ebp + 0xc]
imul edx, ecx
mov dword [ebp - 0x40], ecx
xor ecx, ecx
add edx, 0x36
inc ecx
neg eax
sbb eax, eax
and eax, 0xfffffff0
add eax, 0x18
mov word [ebp - 0x3a], ax
mov eax, 0xec4
push ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1e], edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
push 0xe
push eax
mov dword [ebp - 0x16], 0x36
mov dword [ebp - 0x44], edx
mov word [ebp - 0x3c], cx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call ebx
add esp, 0x28
cmp eax, 1
jne 0x48e8a6
push dword [esi]
push eax
lea eax, [ebp - 0x48]
push 0x28
push eax
call ebx
add esp, 0x10
cmp eax, 1
je 0x48e992
lea ecx, [ebp + 0x14]
call fcn.0045ddba
mov eax, edi
jmp 0x48e8b0
xor edi, edi
inc edi
jmp 0x48e983
Function at 0x48f9a5
Capabilities:
Enumerate gui resources

Disassembly:
push 0x30
mov eax, 0x49ba83
call fcn.004961c2
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push 0x48f8a9
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_EnumWindows]
xor ecx, ecx
cmp edi, ecx
jne 0x48fa5c
mov eax, dword [0x4c8014]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov edi, dword [esi]
mov eax, dword [esi + 4]
sub eax, edi
push 0x1c
cdq
pop ebx
idiv ebx
mov dword [ebp - 4], ecx
test eax, eax
je 0x48fa54
lea edx, [edi + 0x14]
test dword [edx + 4], 0x40000
je 0x48fa22
mov ebx, dword [edx]
test ebx, 0xc00000
je 0x48fa22
test ebx, 0x80000
jne 0x48fa67
inc ecx
add edx, 0x1c
cmp ecx, eax
jb 0x48fa07
test eax, eax
je 0x48fa54
push edi
lea ecx, [ebp - 0x2c]
call fcn.00464713
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.00467190
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0048f34e
lea ecx, [ebp - 0x2c]
call fcn.0045ddba
xor eax, eax
inc eax
call fcn.00496245
ret 0xc
imul ecx, ecx, 0x1c
add ecx, edi
push ecx
jmp 0x48fa2f

Function at 0x48ff37
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x48ffae
cmp word [ebx + 8], 2
jne 0x48ff8d
cmp word [ebx + 0xa], 4
jne 0x48ff8d
mov esi, dword [ebx + 0xc]
jmp 0x48ff87
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0048fecd
mov dword [edi], eax
test eax, eax
je 0x48ffa9
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x48ff6b
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
xor eax, eax
jmp 0x48ffd4
push 8
pop eax
jmp 0x48ffd4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x48ffd4
dec ecx
je 0x48ffcf
dec ecx
je 0x48ffc8
dec ecx
jmp 0x48ffd4
mov eax, 0x2afb
jmp 0x48ffd4
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x4905e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4c8e6c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c9438], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x49019d
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x490428
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.0049015e
jne 0x49076f
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x490765
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_strcpy_s]
push esi
push edi
lea eax, [ebp - 0x218]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x110]
push esi
push eax
call ebx
push str.ws2_32
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4906c4
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4906c0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x49071b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push esi
push eax
call ebx
push str.wship6
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x490762
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x490717
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x490762
xor esi, esi
push dword [ebp + esi*8 - 0x230]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + esi*8 - 0x22c], eax
test eax, eax
je 0x49073e
inc esi
cmp esi, 3
jl 0x49071d
jmp 0x490747
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x490762
xor eax, eax
mov ecx, dword [ebp + eax - 0x22c]
mov dword [eax + 0x4c8e04], ecx
add eax, 8
cmp eax, 0x18
jl 0x49074d
pop edi
pop esi
pop ebx
mov dword [0x4c9438], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x4c8e04]
xor ecx, ebp
call fcn.0049614a
leave
ret 4

Function at 0x490b31
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4c8e6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4c8014]
push esi
mov esi, ecx
mov dword [esi], eax
mov eax, dword [0x4c8014]
mov dword [esi + 8], eax
mov eax, dword [0x4c8014]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
and dword [esi + 0x14], 0
and dword [esi + 0x10], 0
mov dword [esi + 4], 0x19
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049614a
leave
ret
Function at 0x4915c6
Capabilities:
Read file on windows

Disassembly:
push 0x38
mov eax, 0x49bbfc
call fcn.004961c2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0045eae3
mov edi, eax
pop ecx
cmp edi, ebx
jge 0x491614
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.0045fe4f
lea ecx, [ebp + 8]
call fcn.0045ddba
xor eax, eax
inc eax
jmp 0x4916c3
push edi
call fcn.0049608e
mov dword [esp], 0x4bc86c
push dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x30], ebx
je 0x4916a6
push dword [ebp - 0x30]
push 1
push edi
push esi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4916a6
push dword [ebp - 0x30]
call dword [sym.imp.MSVCR100.dll_fclose]
mov dword [esp], 0x4a05b4
push 0x4c
push edi
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00462404
add esp, 0x14
mov ecx, dword [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.00462389
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00461e79
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.0045fe4f
lea ecx, [ebp + 8]
call fcn.0045ddba
xor eax, eax
jmp 0x4916c3
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.0045fe4f
lea ecx, [ebp + 8]
call fcn.0045ddba
push 2
pop eax
call fcn.00496245
ret 8