joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40985c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov ecx, 0x20
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 4
call fcn.0040fdf0
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x4098c3
xor eax, eax
mov edi, esi
mov ebp, dword [esp]
shl edi, 4
lea ebx, [esp + edx*4 + 0xc]
lea edi, [ebp + edi]
mov bl, byte [ebx + eax]
lea edi, [edi + ecx*4]
mov byte [edi + eax + 0x14], bl
inc eax
cmp eax, 4
jl 0x40988e
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x4098bb
cmp ecx, 4
jl 0x40988c
cmp ecx, 4
jne 0x4098c3
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x4098ce
cmp esi, 0xa
jle 0x4098b0
cmp esi, 0xa
jg 0x409a61
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x417cf4]
xor byte [esp + 0xc], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 0xa]
mov dl, byte [eax + 0x417cf4]
xor byte [esp + 0xd], dl
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x417cf4]
xor byte [esp + 0xe], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 8]
mov dl, byte [eax + 0x417cf4]
xor byte [esp + 0xf], dl
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x417ef4]
xor byte [esp + 0xc], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x409971
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x409a0f
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x409951
inc edx
cmp edx, dword [esp + 8]
jl 0x40994f
jmp 0x409a0f
mov edx, 1
jmp 0x40998f
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x40997a
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x40999a
adc eax, 0
cmp edx, eax
jl 0x409978
mov eax, dword [esp + 8]
sar eax, 1
jns 0x4099a9
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x409a0f
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x4099f4
inc edx
cmp edx, dword [esp + 8]
jl 0x4099f2
xor edx, edx
jmp 0x409a4d
xor eax, eax
mov ebx, esi
shl ebx, 4
mov edi, dword [esp]
lea ebx, [edi + ebx]
lea ebx, [ebx + ecx*4]
lea edi, [ebx + eax + 0x14]
lea ebx, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
mov byte [edi], bl
inc eax
cmp eax, 4
jl 0x409a17
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x409a45
cmp ecx, 4
jl 0x409a15
cmp ecx, 4
jne 0x409a4d
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x409a58
cmp esi, 0xa
jle 0x409a3a
cmp esi, 0xa
jle 0x4098d7
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409a6c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
add edx, dword [esp]
shl ebx, 2
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx edi, byte [edx + 1]
mov bl, byte [edx]
lea edi, [edi*4 + 0x41a312]
lea ebx, [ebx*4 + 0x419f12]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x41a712]
lea edx, [edx*4 + 0x41ab12]
xor bl, byte [edi + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4 + 4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x409a7e
inc eax
cmp eax, 4
jl 0x409a7c
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.0040fdf0
inc esi
cmp esi, 0xa
jl 0x409a7a
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x40ae28
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret
Function at 0x40e6fc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40e705
mov eax, dword [ebp - 4]
add esp, 0xfffffb30
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x14b4]
lea eax, [ebp - 0x4a0]
call fcn.0040693c
lea eax, [ebp - 0x474]
call fcn.0040693c
lea eax, [ebp - 0x448]
call fcn.0040693c
push 0
lea ecx, [ebp - 0x10b4]
mov edx, ebx
mov eax, esi
call fcn.00405bf0
test al, al
jne 0x40e762
xor eax, eax
jmp 0x40e8ae
cmp byte [ebp - 0x10b4], 0
je 0x40e774
cmp byte [ebp - 0x41c], 0
jne 0x40e77b
xor eax, eax
jmp 0x40e8ae
lea eax, [ebp - 0x10b4]
call fcn.0040600c
lea edx, [ebp - 0x41c]
call fcn.004070b8
test eax, eax
je 0x40e7ab
mov eax, esi
call fcn.0040600c
lea edx, [ebp - 0x41c]
call fcn.004070b8
test eax, eax
je 0x40e7b2
xor eax, eax
jmp 0x40e8ae
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.0040715c
push ebx
push str.rtmp_d
mov eax, edi
call fcn.0040600c
push eax
call fcn.0040ffcc
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.00406f34
test al, al
je 0x40e7f0
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40e7b4
mov eax, edi
xor edx, edx
call fcn.00406f34
test al, al
je 0x40e804
xor eax, eax
jmp 0x40e8ae
lea eax, [ebp - 0x18b4]
mov ecx, 0x400
mov edx, esi
call fcn.0040715c
lea eax, [ebp - 0x10b4]
call fcn.0040600c
push eax
lea eax, [ebp - 0x18b4]
call fcn.0040600c
pop edx
call fcn.0040fee0
push edi
lea ecx, [ebp - 0x18b4]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40e848
xor eax, eax
jmp 0x40e8ae
lea eax, [ebp - 0x24d4]
call fcn.0040e8b8
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.00406f34
test al, al
jne 0x40e873
lea eax, [ebp - 0x24d4]
xor ecx, ecx
mov edx, esi
call fcn.0040ea98
mov ebx, eax
lea eax, [ebp - 0x18b4]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40e89a
lea eax, [ebp - 0x24d4]
call fcn.0040eb9c
lea eax, [ebp - 0x24d4]
call fcn.0040ec20
mov al, 1
push eax
lea eax, [ebp - 0x24d4]
mov edx, 2
call fcn.0040e908
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e94c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40e96f
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40e980
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40e98f
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40e99c
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.00405758
test eax, eax
je 0x40e9c9
test esi, esi
je 0x40e9c9
cmp word [esi], 0
je 0x40e9c9
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40e9e0
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e9f9
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40e9f9
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40ea63
mov dword [ebx + 4], edi
test esi, esi
je 0x40ea2e
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.004106c0
jmp 0x40ea37
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40ea4a
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040fee0
jmp 0x40ea59
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.0041049c
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040eb48
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ec54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
test esi, esi
je 0x40ed7c
cmp dword [edi + 0xc], 0
je 0x40ec93
mov eax, dword [edi + 0xc]
dec eax
je 0x40ec7d
dec eax
je 0x40ec89
jmp 0x40ec93
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40ec93
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40ece6
xor ebx, ebx
cmp esi, ebx
jle 0x40ed03
push 0
lea eax, [ebp - 0xc]
push eax
mov edx, esi
sub edx, ebx
cmp edx, 0x4000
jge 0x40ecb7
mov ecx, esi
sub ecx, ebx
jmp 0x40ecbc
mov ecx, 0x4000
push ecx
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 5], dl
test dl, dl
je 0x40ed03
add ebx, 0x4000
cmp esi, ebx
jg 0x40ec9f
jmp 0x40ed03
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 5], cl
cmp byte [ebp - 5], 0
jne 0x40ed78
cmp byte [edi + 0x14], 0
je 0x40ed78
cmp dword [edi + 0xc], 0
jne 0x40ed78
lea edx, [edi + 0x17]
mov eax, 0x41b998
call fcn.0040cd4c
test al, al
je 0x40ed62
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
jae 0x40ec93
cmp dword [ebp - 0xc], 0
jbe 0x40ec93
mov eax, edi
call fcn.0040efa8
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040eef0
jmp 0x40ec93
lea ecx, [edi + 0x17]
mov eax, 0x41b998
xor edx, edx
call fcn.0040cd34
jmp 0x40ed78
mov byte [edi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ee6c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40ee96
cmp esi, 0x4e20
jle 0x40ee8c
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40eee6
mov eax, ebx
call fcn.0040f1b4
test al, al
je 0x40eecd
cmp esi, 0x4e20
jle 0x40eecd
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040ee6c
jmp 0x40eee9
cmp dword [ebx + 0xc], 1
jne 0x40eee1
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40eee1
xor eax, eax
jmp 0x40eee9
or eax, 0xffffffff
jmp 0x40eee9
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
cmp byte [0x41577c], 0
jne 0x410445
call fcn.00410070
mov dword [0x415778], eax
inc byte [0x41577c]
call fcn.00410070
sub eax, dword [0x415778]
cmp eax, 0x64
jle 0x410481
cmp dword [0x416188], 0
je 0x41047c
mov eax, 0x41b998
mov edx, 0xff
call fcn.0040ceec
mov eax, 0x41b998
mov edx, 0xff
call fcn.0040cee4
call fcn.00402c1c
ret
Function at 0x402310
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x318
mov eax, dword [0x454004]
xor eax, esp
mov dword [esp + 0x314], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0xc]
push 0x104
push 0x104
push eax
call fcn.004010f0
push dword [eax + 4]
push dword [eax]
call fcn.00428cc7
add esp, 0x20
xor eax, eax
mov cl, byte [esp + eax]
test cl, cl
je 0x40236a
cmp cl, 0x7f
ja 0x402394
inc eax
cmp eax, 0x104
jl 0x402356
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4023c5
test al, 0x10
je 0x4023c5
mov eax, 1
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [esp + 0x10c]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0xc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x402374
mov ecx, dword [esp + 0x314]
xor eax, eax
xor ecx, esp
call fcn.00423c62
mov esp, ebp
pop ebp
ret

Function at 0x4023e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x318
mov eax, dword [0x454004]
xor eax, esp
mov dword [esp + 0x314], eax
push ebx
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0x14]
push 0x104
push 0x104
push eax
call fcn.004010f0
push dword [eax + 4]
push dword [eax]
call fcn.00428cc7
add esp, 0x20
xor eax, eax
mov cl, byte [esp + eax + 8]
test cl, cl
je 0x40243d
cmp cl, 0x7f
ja 0x40248d
inc eax
cmp eax, 0x104
jl 0x402428
push 0
push 0
push 3
push 0
push 1
push 8
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp esi, 0xffffffff
je 0x4024da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, 0x10
jne 0x4024da
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [esp + 0x114]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 3
push 0
push 1
push 8
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x402461
mov ecx, dword [esp + 0x31c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
Function at 0x403090
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x220], eax
mov esi, ecx
push edi
mov dword [ebp - 0x218], edx
xor eax, eax
mov cl, byte [eax + esi]
test cl, cl
je 0x4030d6
cmp cl, 0x7f
ja 0x40310f
inc eax
cmp eax, 0x104
jl 0x4030c2
push 0
push 0
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403149
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_open__s__u_n
push 1
call fcn.00401a20
add esp, 0x10
jmp 0x403214
push 0x208
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 3
push 0
push 1
push closesocket
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4030ec
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor edx, edx
mov ecx, ebx
add ecx, dword [ebp - 0x218]
setb dl
neg edx
or edx, ecx
push edx
call fcn.00425f1b
add esp, 4
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x403193
push str.Failed_to_alloc_file_buffer_n
push 1
call fcn.00401a20
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403214
push 0
lea ecx, [ebp - 0x214]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4031e1
cmp ebx, dword [ebp - 0x214]
jne 0x4031e1
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x218]
push edi
mov dword [ecx], eax
mov eax, dword [ebp - 0x220]
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x214]
push esi
push str.Failed_to_read_file___s___u_err:_u
push 1
call fcn.00401a20
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x218]
push eax
call fcn.00425f00
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423c62
mov esp, ebp
pop ebp
ret
Function at 0x4064e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x206c
call fcn.00443ba0
mov eax, dword [0x454004]
xor eax, esp
mov dword [esp + 0x2068], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 0xc]
mov edx, 0x2000
lea ecx, [esp + 0x7c]
call fcn.00405860
add esp, 0xc
mov byte [esp + 0x206f], 0
test edi, edi
jne 0x40654b
lea eax, [esp + 0x70]
push eax
call fcn.0042cb5f
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2068]
xor ecx, esp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x270]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x40656e
lea ecx, [esp + 0x70]
push ecx
push edi
call eax
add esp, 8
test eax, eax
jne 0x40664d
mov eax, dword [edi + 0x270]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x40664d
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push 0x44c090
call fcn.00406330
add esp, 8
test eax, eax
je 0x40664d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40664d
push 0x456944
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
call fcn.0042933f
lea ecx, [edi + 0x290]
mov byte [esp + 0x40], 0
add esp, 4
mov ebx, eax
test ecx, ecx
je 0x4065e9
cmp word [ecx], 2
jne 0x4065e9
push 2
push 0
push 0
push 0x32
lea eax, [esp + 0x4c]
push eax
push 0x10
push ecx
call dword [sym.imp.WS2_32.dll_getnameinfo]
lea eax, [esp + 0x3c]
push eax
push ebx
push str.__010lu___error___client__s_
push esi
call fcn.00401900
mov eax, dword [edi]
add esp, 0x10
test eax, eax
je 0x406615
push dword [edi + 4]
push eax
push str._s__s:
push esi
call fcn.00401900
add esp, 0x10
lea eax, [esp + 0x70]
push eax
push 0x44c068
push esi
call fcn.00401900
add esp, 0xc
push esi
push 0xa
call fcn.004295de
push esi
call fcn.0042aa8f
add esp, 0xc
push 0x456944
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.004290f0
add esp, 4
mov ecx, dword [esp + 0x2074]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
Function at 0x4074b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [edx], 0
lea ecx, [ebp - 0x108]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x104
je 0x4074f2
mov eax, ecx
sub edx, eax
nop dword [eax]
cmp esi, 1
jbe 0x4074f2
mov al, byte [edx + ecx]
dec esi
mov byte [ecx], al
inc ecx
cmp byte [edx + ecx], 0
jne 0x4074e0
push edi
mov byte [ecx], 0
xor edi, edi
cmp byte [ebp - 0x108], 0
je 0x407554
lea esi, [ebp - 0x107]
add esi, edi
mov al, byte [esi - 1]
cmp al, 0x2f
jne 0x407516
mov byte [esi - 1], 0x5c
jmp 0x40751a
cmp al, 0x5c
jne 0x407549
test edi, edi
jle 0x407549
nop
mov al, byte [esi]
cmp al, 0x5c
je 0x40752a
cmp al, 0x2f
jne 0x407549
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407530
sub eax, edx
push eax
lea eax, [esi + 1]
push eax
push esi
call fcn.00425980
add esp, 0xc
jmp 0x407520
inc edi
cmp byte [ebp + edi - 0x108], 0
jne 0x407501
push 0x208
push 0
push ebx
call fcn.004252d0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x108]
pop edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4075d0
test dl, dl
je 0x4075cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4075d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4075b0
xor eax, eax
jmp 0x4075d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4075de
xor eax, eax
mov word [ebx], ax
push 0x20a
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.004252d0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x407618
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407638
jmp 0x40761f
cmp eax, 0x105
jae 0x407633
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.00407470
add esp, 8
test eax, eax
je 0x407638
xor eax, eax
mov word [ebx], ax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00423c62
mov esp, ebp
pop ebp
ret
Function at 0x409470
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [0x454004]
xor eax, esp
mov dword [esp + 0x6c], eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
push esi
push edi
test edx, edx
je 0x4094e5
lea esi, [ebp + 0xc]
nop
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4094c5
sub eax, edi
lea ecx, [esp + 8]
push eax
call fcn.004060e0
mov edx, dword [esi + 4]
add esi, 4
add esp, 4
test edx, edx
jne 0x4094c0
lea edx, [esp + 0x64]
lea ecx, [esp + 8]
call fcn.004061c0
mov edx, dword [ebp + 8]
lea esi, [esp + 0x64]
mov edi, 0x10
nop
movzx ecx, byte [esi]
lea edx, [edx + 2]
mov eax, ecx
lea esi, [esi + 1]
shr eax, 4
and ecx, 0xf
mov al, byte [eax + str.0123456789abcdef]
mov byte [edx - 2], al
mov cl, byte [ecx + str.0123456789abcdef]
mov byte [edx - 1], cl
sub edi, 1
jne 0x409500
mov ecx, dword [esp + 0x74]
mov eax, dword [ebp + 8]
pop edi
pop esi
xor ecx, esp
mov byte [edx], 0
call fcn.00423c62
mov esp, ebp
pop ebp
ret